From: Otto Date: Fri, 26 Mar 2021 15:37:46 +0000 (+0100) Subject: Clear d_from if we don't know where the update came from X-Git-Tag: dnsdist-1.6.0-rc1~48^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10232%2Fhead;p=thirdparty%2Fpdns.git Clear d_from if we don't know where the update came from --- diff --git a/pdns/recursor_cache.cc b/pdns/recursor_cache.cc index c7c2414ebe..c61076257c 100644 --- a/pdns/recursor_cache.cc +++ b/pdns/recursor_cache.cc @@ -480,6 +480,8 @@ void MemRecursorCache::replace(time_t now, const DNSName &qname, const QType qt, ce.d_authZone = authZone; if (from) { ce.d_from = *from; + } else { + ce.d_from = ComboAddress(); } for (const auto& i : content) {