- Fix a small bug in the route selection code

svn path=/trunk/; revision=43078
This commit is contained in:
Cameron Gutman
2009-09-19 03:22:26 +00:00
parent 9ccce3d818
commit 8f5ae98c4f
+2 -2
View File
@@ -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;