From: Remi Gacogne Date: Thu, 24 Oct 2019 08:41:49 +0000 (+0200) Subject: dnsdist: Check that the ClientState pointer is not nullptr X-Git-Tag: dnsdist-1.4.0-rc4~2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83f7bbdbb7f97149dae6851aab77a2c02fba5611;p=pdns dnsdist: Check that the ClientState pointer is not nullptr That makes clang's static analyzer happy. --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 08d5ceeb2..955743971 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -632,7 +632,9 @@ try { } ++g_stats.responses; - ++ids->cs->responses; + if (ids->cs) { + ++ids->cs->responses; + } ++dss->responses; double udiff = ids->sentTime.udiff();