[ros-diffs] [cgutman] 43078: - Fix a small bug in the route selection code

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sat Sep 19 05:22:27 CEST 2009


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/router.c?rev=43078&r1=43077&r2=43078&view=diff
==============================================================================
--- 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;




More information about the Ros-diffs mailing list