... and make it return the *right* value when it goes out of bounds.

This commit is contained in:
Mark Eichin 1992-07-14 22:47:46 +00:00
parent b974fbff9c
commit f7dfc7e2a6
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ nllookup( address )
printf("[nllookup] %d (%d) probes, fall off\n", probes, nname-1);
}
# endif
return &nl[middle];
return &nl[middle+1];
}
fprintf( stderr , "[nllookup] binary search fails???\n" );
#ifdef DEBUG