From: Peter van Dijk Date: Mon, 30 Aug 2021 11:18:37 +0000 (+0200) Subject: fix bug X-Git-Tag: dnsdist-1.7.0-alpha1~14^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed3e9d73e6265650f189acb8c51fc7c2a0f1d54c;p=thirdparty%2Fpdns.git fix bug --- diff --git a/pdns/responsestats-auth.cc b/pdns/responsestats-auth.cc index ec954e2bd7..775b086089 100644 --- a/pdns/responsestats-auth.cc +++ b/pdns/responsestats-auth.cc @@ -22,7 +22,7 @@ void ResponseStats::submitResponse(DNSPacket &p, bool udpOrTCP, bool last) const static AtomicCounter &tcpbytesanswered4=*S.getPointer("tcp4-answers-bytes"); static AtomicCounter &tcpbytesanswered6=*S.getPointer("tcp6-answers-bytes"); - ComboAddress& accountremote = p.d_remote; + ComboAddress accountremote = p.d_remote; if (p.d_inner_remote) accountremote = *p.d_inner_remote; if(p.d.aa) {