]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Clear d_from if we don't know where the update came from 10232/head
authorOtto <otto.moerbeek@open-xchange.com>
Fri, 26 Mar 2021 15:37:46 +0000 (16:37 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Fri, 26 Mar 2021 15:37:46 +0000 (16:37 +0100)
pdns/recursor_cache.cc

index c7c2414ebe4c4bb7db8c8a3437a75d9afadc2b87..c61076257c39602343cffd296cba1751ba28b00c 100644 (file)
@@ -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) {