... and make it return the *right* value when it goes out of bounds.
This commit is contained in:
parent
b974fbff9c
commit
f7dfc7e2a6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue