... and make it return the *right* value when it goes out of bounds.
This commit is contained in:
parent
b974fbff9c
commit
f7dfc7e2a6
|
@ -69,7 +69,7 @@ nllookup( address )
|
||||||
printf("[nllookup] %d (%d) probes, fall off\n", probes, nname-1);
|
printf("[nllookup] %d (%d) probes, fall off\n", probes, nname-1);
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
return &nl[middle];
|
return &nl[middle+1];
|
||||||
}
|
}
|
||||||
fprintf( stderr , "[nllookup] binary search fails???\n" );
|
fprintf( stderr , "[nllookup] binary search fails???\n" );
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
Loading…
Reference in New Issue