]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Drop redundant uses of authoritative=True
authorMichał Kępień <michal@isc.org>
Thu, 21 May 2026 09:52:56 +0000 (11:52 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 21 May 2026 10:02:20 +0000 (12:02 +0200)
The ans3 custom server instance is created with default_aa=True.  Do not
pass the authoritative=True keyword argument to the DnsResponseSend
constructor in CookieHandler.get_responses() as it is redundant.

(cherry picked from commit c61539279d4ecc04f9816b2ae62d63ed8a143c19)

bin/tests/system/resend_loop/ans3/ans.py

index f6543e0eace863fe4c4f94cf7ad851cf54006822..f3c6c9fec167b056fe81db03c870e0a66274bdc9 100644 (file)
@@ -73,13 +73,13 @@ class CookieHandler(DomainHandler):
         # If missing cookie entirely, just return SERVFAIL
         if cookie is None:
             qctx.response.set_rcode(dns.rcode.SERVFAIL)
-            yield DnsResponseSend(qctx.response, authoritative=True)
+            yield DnsResponseSend(qctx.response)
 
         # If there is a client cookie, mock BADCOOKIE to trigger
         # the resend loop logic.
         qctx.response.use_edns(options=[cookie])
         qctx.response.set_rcode(dns.rcode.BADCOOKIE)
-        yield DnsResponseSend(qctx.response, authoritative=True)
+        yield DnsResponseSend(qctx.response)
 
 
 def resend_server() -> AsyncDnsServer: