mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 20:18:22 +00:00
- Fix a small bug in the route selection code
svn path=/trunk/; revision=43078
This commit is contained in:
parent
9ccce3d818
commit
8f5ae98c4f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue