]> git.ipfire.org Git - thirdparty/bind9.git/commit
Avoid sending manually created responses in asyncserver
authorŠtěpán Balážik <stepan@isc.org>
Fri, 2 Jan 2026 19:36:29 +0000 (20:36 +0100)
committerŠtěpán Balážik <stepan@isc.org>
Fri, 9 Jan 2026 14:22:16 +0000 (14:22 +0000)
commit1fc206556bc0449eca231bf6c17bc796b7d82fa2
treeb8ddf41e7c7bc62f2760bb3cabbe5fcb58c53f8d
parent263f54c9d1394799b9b1c79a1a44982be3190618
Avoid sending manually created responses in asyncserver

If at all possible, all the responses should be created by
AsyncDnsServer's internal methods. To ensure this, mark them with a
magic attribute and check it on send and crash the server if a manually
created response is detected.

Fix the qmin test server which uses `make_response`.
bin/tests/system/isctest/asyncserver.py
bin/tests/system/qmin/ans2/ans.py