From 781f36d6b835720f65e28c17808760373d2497a4 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 31 Oct 2023 10:44:00 +0100 Subject: [PATCH] dnsdist: Silence a false positive reported by Coverity as CID 404742 --- pdns/dnsdistdist/doh.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdns/dnsdistdist/doh.cc b/pdns/dnsdistdist/doh.cc index a3ccd80160..47c6d904f2 100644 --- a/pdns/dnsdistdist/doh.cc +++ b/pdns/dnsdistdist/doh.cc @@ -812,6 +812,10 @@ static void processDOHQuery(DOHUnitUniquePtr&& unit, bool inMainThread = false) /* this moves du->ids, careful! */ auto cpq = std::make_unique(std::move(unit), false); + if (!cpq) { + // make linters happy + return; + } cpq->query.d_proxyProtocolPayload = std::move(proxyProtocolPayload); if (downstream->passCrossProtocolQuery(std::move(cpq))) { -- 2.47.2