]> git.ipfire.org Git - thirdparty/bind9.git/commit
Address races in dns_tsigkey_find()
authorMark Andrews <marka@isc.org>
Wed, 28 Jun 2023 23:15:38 +0000 (09:15 +1000)
committerMichał Kępień <michal@isc.org>
Fri, 5 Jan 2024 10:16:12 +0000 (11:16 +0100)
commitd2ba96488ea30eaeb225c12ea77e71de399b6175
tree6280fd7d8764b5536d7826782885d976f0cb1b77
parent9074bfa38d4adf55dc39d53235aa958663519c64
Address races in dns_tsigkey_find()

1) Restart the process with a write lock if we discover an expired key
while holding the read lock.

2) Move incrementing the key reference inside the lock block of code.
lib/dns/tsig.c