summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2021-06-05 11:25:55 +0200
committerDirk Engling <erdgeist@erdgeist.org>2021-06-05 11:25:55 +0200
commit298fe52f520ed42ba80c952a5e39a380a9e47644 (patch)
tree1a09da0b38e67e6fcac72cae7ebfeac0bc9d3f1d
parent3168071175e9b5792a08adeb4784073f2e5df58b (diff)
Make accesslists work again by testing the actual result of bsearch. Thanks to Hanno
-rw-r--r--ot_accesslist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c
index 921bde3..3154e7f 100644
--- a/ot_accesslist.c
+++ b/ot_accesslist.c
@@ -119,7 +119,7 @@ int accesslist_hashisvalid( ot_hash hash ) {
119 void * exactmatch = NULL; 119 void * exactmatch = NULL;
120 120
121 if (accesslist) 121 if (accesslist)
122 bsearch( hash, accesslist->list, accesslist->size, OT_HASH_COMPARE_SIZE, vector_compare_hash ); 122 exactmatch = bsearch( hash, accesslist->list, accesslist->size, OT_HASH_COMPARE_SIZE, vector_compare_hash );
123 123
124#ifdef WANT_ACCESSLIST_BLACK 124#ifdef WANT_ACCESSLIST_BLACK
125 return exactmatch == NULL; 125 return exactmatch == NULL;