diff --git a/reactos/lib/iphlpapi/ipstats_reactos.c b/reactos/lib/iphlpapi/ipstats_reactos.c index a7ce4d7e2ed..4322937fedb 100644 --- a/reactos/lib/iphlpapi/ipstats_reactos.c +++ b/reactos/lib/iphlpapi/ipstats_reactos.c @@ -466,14 +466,14 @@ RouteTable *getRouteTable(void) DPRINT( "%d routes in instance %d\n", snmpInfo.ipsi_numroutes, i ); + tdiGetRoutesForIpEntity( tcpFile, &ent, &route_set, &numRoutes ); + if( !route_set ) { closeTcpFile( tcpFile ); HeapFree( GetProcessHeap(), 0, out_route_table ); return 0; } - tdiGetRoutesForIpEntity( tcpFile, &ent, &route_set, &numRoutes ); - DPRINT("Route set returned\n"); #if 0 HexDump( route_set,