mirror of
git://erdgeist.org/opentracker
synced 2025-03-12 05:31:02 +00:00
accesslist checker should not operate on an empty list
This commit is contained in:
parent
58dedd001d
commit
27f8189d84
@ -116,7 +116,10 @@ int accesslist_hashisvalid( ot_hash hash ) {
|
|||||||
/* Get working copy of current access list */
|
/* Get working copy of current access list */
|
||||||
ot_accesslist * accesslist = g_accesslist;
|
ot_accesslist * accesslist = g_accesslist;
|
||||||
|
|
||||||
void * exactmatch = bsearch( hash, accesslist->list, accesslist->size, OT_HASH_COMPARE_SIZE, vector_compare_hash );
|
void * exactmatch = NULL;
|
||||||
|
|
||||||
|
if (accesslist)
|
||||||
|
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