]> git.ipfire.org Git - thirdparty/bind9.git/commit
Process canceled/shut down results in validate_dnskey_dsset_done()
authorAram Sargsyan <aram@isc.org>
Mon, 2 Sep 2024 14:44:05 +0000 (14:44 +0000)
committerNicki Křížek <nicki@isc.org>
Wed, 4 Sep 2024 14:23:25 +0000 (16:23 +0200)
commitbf549e32bb7f0cff9641a6197b7a5de2580a3228
treec94802a625702742bbb8fd8ba8318eb77ebebdb9
parent02d4755cc31d6f8e5bf6a40223781355dc0bd744
Process canceled/shut down results in validate_dnskey_dsset_done()

When a validator is already shut down, val->name becomes NULL. We
need to process and keep the ISC_R_CANCELED or ISC_R_SHUTTINGDOWN
result code before calling validate_async_done(), otherwise, when it
is called with the hardcoded DNS_R_NOVALIDSIG result code, it can
cause an assetion failure when val->name (being NULL) is used in
proveunsecure().

(cherry picked from commit d85918aebf8e0ce0d19cc44df3bdf04cfae3b475)
lib/dns/validator.c