From: Remi Gacogne Date: Tue, 7 Dec 2021 16:41:22 +0000 (+0100) Subject: dnsdist: Fix a double-free when a DoH cross-protocol response is dropped X-Git-Tag: auth-4.7.0-alpha1~122^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbd2a418d299891e5af3b2376f41bb7464dae45d;p=thirdparty%2Fpdns.git dnsdist: Fix a double-free when a DoH cross-protocol response is dropped --- diff --git a/pdns/dnsdistdist/doh.cc b/pdns/dnsdistdist/doh.cc index 3bfd66a008..6c125fdf24 100644 --- a/pdns/dnsdistdist/doh.cc +++ b/pdns/dnsdistdist/doh.cc @@ -459,6 +459,7 @@ public: if (!processResponse(du->response, localRespRuleActions, dr, false, false)) { du->release(); + du = nullptr; return; }