From 298fe52f520ed42ba80c952a5e39a380a9e47644 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 5 Jun 2021 11:25:55 +0200 Subject: Make accesslists work again by testing the actual result of bsearch. Thanks to Hanno --- ot_accesslist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ot_accesslist.c') 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 ) { 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; -- cgit v1.2.3