]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix assertion failure when sending notify fails over UDP
authorOndřej Surý <ondrej@isc.org>
Thu, 19 Feb 2026 12:44:23 +0000 (13:44 +0100)
committerOndřej Surý <ondrej@isc.org>
Fri, 20 Feb 2026 09:50:19 +0000 (10:50 +0100)
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.

(cherry picked from commit ee3391a1460cd80b910136a65f44b6400b5e38fe)

lib/dns/request.c

index 052c9f1081037ee6a177a376bb211c9bcd53700f..0abddd2fff1613d312f8bc25b8f43a9d02a6e584 100644 (file)
@@ -649,6 +649,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__,