mirror of
git://erdgeist.org/opentracker
synced 2025-04-14 00:51:15 +08: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;
|
void * exactmatch = NULL;
|
||||||
|
|
||||||
if (accesslist)
|
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
|
#ifdef WANT_ACCESSLIST_BLACK
|
||||||
return exactmatch == NULL;
|
return exactmatch == NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user