summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-24 15:49:28 +0200
committerDirk Engling <erdgeist@erdgeist.org>2026-10-24 15:49:28 +0200
commitea9c9a1766f1ce716c359fc04628855293fcffbd (patch)
treedf841d5db3cba45ba18c66fcd8f7ecdb963179f3
parent5fc1e46fd39d68dc6202055a11a2fc3e26c384ed (diff)
Fix: Swap compare size and membersize for binary search. Did not break anything, since they were identical
-rw-r--r--ot_accesslist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c
index 24b334c..9163ea9 100644
--- a/ot_accesslist.c
+++ b/ot_accesslist.c
@@ -339,7 +339,7 @@ static void *accesslist_adddel_worker(char *fifoname, ot_accesslist *_Atomic
339 } 339 }
340 } else { 340 } else {
341 int exactmatch = 0; 341 int exactmatch = 0;
342 ot_hash *insert_point = binary_search(info_hash, (*adding_to)->list, (*adding_to)->size, OT_HASH_COMPARE_SIZE, sizeof(ot_hash), &exactmatch); 342 ot_hash *insert_point = binary_search(info_hash, (*adding_to)->list, (*adding_to)->size, sizeof(ot_hash), OT_HASH_COMPARE_SIZE, &exactmatch);
343 343
344 /* Only if the info hash is not in the adding_to list, create a new head with that entry */ 344 /* Only if the info hash is not in the adding_to list, create a new head with that entry */
345 if (!exactmatch) { 345 if (!exactmatch) {