]> 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>
Thu, 19 Feb 2026 12:44:23 +0000 (13:44 +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.

lib/dns/request.c

index 93c868ecfd9ec929d1b0e84afe37a24c58a138ad..64a4602e624b121b3511a5c99c2bfa4c226124b3 100644 (file)
@@ -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__,