mirror of
git://erdgeist.org/opentracker
synced 2025-01-13 08:20:06 +00:00
Make accesslists work again by testing the actual result of bsearch. Thanks to Hanno
This commit is contained in:
parent
3168071175
commit
298fe52f52
@ -119,7 +119,7 @@ int accesslist_hashisvalid( ot_hash hash ) {
|
||||
void * exactmatch = NULL;
|
||||
|
||||
if (accesslist)
|
||||
bsearch( hash, accesslist->list, accesslist->size, OT_HASH_COMPARE_SIZE, vector_compare_hash );
|
||||
exactmatch = bsearch( hash, accesslist->list, accesslist->size, OT_HASH_COMPARE_SIZE, vector_compare_hash );
|
||||
|
||||
#ifdef WANT_ACCESSLIST_BLACK
|
||||
return exactmatch == NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user