]> git.ipfire.org Git - thirdparty/bind9.git/commit
Only unlink from SIEVE LRU if it is still linked
authorOndřej Surý <ondrej@isc.org>
Wed, 29 Oct 2025 06:18:55 +0000 (07:18 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 4 Nov 2025 18:52:45 +0000 (19:52 +0100)
commit0d8dedf73b09943101ae8a412194276499eb402e
treeab31ba8ff42d2894746eec40a3b5dd38323e9d9f
parent173868e38093efe234c5bf658dab05f7a063d56e
Only unlink from SIEVE LRU if it is still linked

Under the overmem conditions, the header could get unlinked from the
SIEVE LRU using a different path.  This could lead to double-unlink
which causes assertion failure.  Add a guard to ISC_SIEVE_UNLINK() to
unlink only still linked headers.
lib/dns/qpcache.c
lib/isc/include/isc/sieve.h