From 8f5ae98c4f3a48b6004a8024d8baada4deb9def4 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 19 Sep 2009 03:22:26 +0000 Subject: [PATCH] - Fix a small bug in the route selection code svn path=/trunk/; revision=43078 --- reactos/lib/drivers/ip/network/router.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/drivers/ip/network/router.c b/reactos/lib/drivers/ip/network/router.c index a44d9e387b6..a220db84e17 100644 --- a/reactos/lib/drivers/ip/network/router.c +++ b/reactos/lib/drivers/ip/network/router.c @@ -274,8 +274,8 @@ PNEIGHBOR_CACHE_ENTRY RouterGetRoute(PIP_ADDRESS Destination) 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;