]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Drop unnecessary qctx.prepare_new_response() call
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 does not have any zones defined, so the responses
passed to its handlers by core isctest.asyncserver code are guaranteed
to be empty.  Remove a call to qctx.prepare_new_response() from
CookieHandler.get_responses() as it is redundant.

(cherry picked from commit 802c03313f99f622b979aa3bb548e3a4eb4340d3)

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

index 9a1ccf97cf0c248efb8176a1e460b3a1c6a2fc09..f6543e0eace863fe4c4f94cf7ad851cf54006822 100644 (file)
@@ -67,8 +67,6 @@ class CookieHandler(DomainHandler):
         self, qctx: QueryContext
     ) -> AsyncGenerator[DnsResponseSend, None]:
 
-        qctx.prepare_new_response()
-
         # Check for client cookie
         cookie = _get_cookie(qctx)