]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Index heaps at 1 instead of 0
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Aug 2021 14:50:24 +0000 (09:50 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Aug 2021 14:57:09 +0000 (09:57 -0500)
commit4b252650e3cba3c04c665d57f92a0253a01eec4a
tree51bfef581d2a42bb29215395ea099a8e185f2a20
parent5d320e925a2d47b60b3b016e171da822d9556761
Index heaps at 1 instead of 0

Allows us to have more elements in the heap, and fixes an issue where the element inserted at index 0 may have been counted as not inserted.
15 files changed:
src/lib/io/channel.h
src/lib/io/network.c
src/lib/io/worker.c
src/lib/server/cf_file.c
src/lib/server/pool.c
src/lib/server/request.c
src/lib/server/request.h
src/lib/server/trunk.c
src/lib/util/event.c
src/lib/util/heap.c
src/lib/util/heap.h
src/lib/util/heap_tests.c
src/lib/util/trie.c
src/lib/util/trie.h
src/modules/rlm_cache/drivers/rlm_cache_rbtree/rlm_cache_rbtree.c