Browse Source

Make accesslists work again by testing the actual result of bsearch. Thanks to Hanno

dynamic-accesslists
Dirk Engling 4 years ago
parent
commit
298fe52f52
  1. 2
      ot_accesslist.c

2
ot_accesslist.c

@ -119,7 +119,7 @@ int accesslist_hashisvalid( ot_hash hash ) { @@ -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…
Cancel
Save