Author: cgutman
Date: Sat Sep 19 05:22:26 2009
New Revision: 43078
URL:
http://svn.reactos.org/svn/reactos?rev=43078&view=rev
Log:
- Fix a small bug in the route selection code
Modified:
trunk/reactos/lib/drivers/ip/network/router.c
Modified: trunk/reactos/lib/drivers/ip/network/router.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/network/rou…
==============================================================================
--- trunk/reactos/lib/drivers/ip/network/router.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/network/router.c [iso-8859-1] Sat Sep 19 05:22:26 2009
@@ -274,8 +274,8 @@
TI_DbgPrint(DEBUG_ROUTER,("This-Route: %s (Sharing %d bits)\n",
A2S(&NCE->Address), Length));
- if(Length >= MaskLength && (Length > BestLength || !BestLength)
&&
- (!(State & NUD_STALE) || !BestState)) {
+ if(Length >= MaskLength && (Length > BestLength || !BestNCE) &&
+ (!(State & NUD_STALE) || !BestNCE)) {
/* This seems to be a better router */
BestNCE = NCE;
BestLength = Length;