From: Ondřej Surý Date: Thu, 19 Feb 2026 12:44:23 +0000 (+0100) Subject: Fix assertion failure when sending notify fails over UDP X-Git-Tag: v9.21.19~19^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee3391a1460cd80b910136a65f44b6400b5e38fe;p=thirdparty%2Fbind9.git Fix assertion failure when sending notify fails over UDP When dns_request_create() fails in notify_send_toaddr() the TSIG key was not cleared when retrying over TCP causing assertion failure. Set the TSIG key to NULL in the dns_message to prevent the assertion failure. --- diff --git a/lib/dns/request.c b/lib/dns/request.c index 93c868ecfd9..64a4602e624 100644 --- a/lib/dns/request.c +++ b/lib/dns/request.c @@ -632,6 +632,7 @@ again: cleanup: if (result != ISC_R_SUCCESS) { + dns_message_settsigkey(message, NULL); req_cleanup(request); dns_request_detach(&request); req_log(ISC_LOG_DEBUG(3), "%s: failed %s", __func__,