mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- Fix a small bug in the route selection code
svn path=/trunk/; revision=43078
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user