From: Remi Gacogne Date: Wed, 17 Jul 2019 08:24:10 +0000 (+0200) Subject: dnsdist: Fix the DoH (https) response information in verbose mode X-Git-Tag: dnsdist-1.4.0-rc1~38^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c72bc54c15b5bc970b299955130cf9e8063b4ef;p=pdns dnsdist: Fix the DoH (https) response information in verbose mode --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 3e6c53284..244b3ba54 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -570,6 +570,7 @@ try { continue; } + bool isDoH = du != nullptr; /* atomically mark the state as available */ int oldFD = ids->origFD.exchange(-1); if (oldFD == origFD) { @@ -630,7 +631,7 @@ try { double udiff = ids->sentTime.udiff(); vinfolog("Got answer from %s, relayed to %s%s, took %f usec", dss->remote.toStringWithPort(), ids->origRemote.toStringWithPort(), - ids->du ? " (https)": "", udiff); + isDoH ? " (https)": "", udiff); struct timespec ts; gettime(&ts);