From: Remi Gacogne Date: Mon, 12 May 2025 10:16:37 +0000 (+0200) Subject: dnsdist: The PP mock backend has to copy the response before editing it X-Git-Tag: dnsdist-2.0.0-alpha2~20^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05ea9ca6bd78b4e59d41b0e5a5628d1360645ec5;p=thirdparty%2Fpdns.git dnsdist: The PP mock backend has to copy the response before editing it --- diff --git a/regression-tests.dnsdist/proxyprotocolutils.py b/regression-tests.dnsdist/proxyprotocolutils.py index 9d0021911b..4f7659fee2 100644 --- a/regression-tests.dnsdist/proxyprotocolutils.py +++ b/regression-tests.dnsdist/proxyprotocolutils.py @@ -43,7 +43,7 @@ def ProxyProtocolUDPResponder(port, fromQueue, toQueue): toQueue.put([payload, dnsData], True, 2.0) # computing the correct ID for the response request = dns.message.from_wire(dnsData) - response = fromQueue.get(True, 2.0) + response = copy.deepcopy(fromQueue.get(True, 2.0)) response.id = request.id sock.settimeout(2.0)