X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FIPStack%2Frouting.c;h=e86f333b3f451eab2e2cea2bc40f1b90d4e7b522;hb=f0b5018caef356cda6afa147ddb6917068c62dd7;hp=d9efa99f4e0392c37b6980b915370a0f29649047;hpb=4ebe00546574e97c5316881881f7f2562deea74b;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/IPStack/routing.c b/KernelLand/Modules/IPStack/routing.c index d9efa99f..e86f333b 100644 --- a/KernelLand/Modules/IPStack/routing.c +++ b/KernelLand/Modules/IPStack/routing.c @@ -115,12 +115,13 @@ tVFS_Node *IPStack_RouteDir_FindDir(tVFS_Node *Node, const char *Name) { LOG("Why does this route not have a node? trying to find an iface for the next hop"); - rt = _Route_FindInterfaceRoute(type, rt->NextHop); - if(!rt) { + void *nextrt = _Route_FindInterfaceRoute(type, rt->NextHop); + if(!nextrt) { Log_Notice("Cannot find route to next hop '%s'", IPStack_PrintAddress(type, rt->NextHop)); return NULL; } + rt = nextrt; } if( !rt->Interface ) { Log_Notice("Routes", "No interface for route %p, what the?", rt);