From: bert hubert Date: Sun, 28 Feb 2016 18:56:41 +0000 (+0100) Subject: don't store empty records in the cache if we did get RRSIGs for a record we did not... X-Git-Tag: rec-4.0.0-alpha2~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b20ee0d803a26082aaefd492b8413e10479e7c6;p=pdns don't store empty records in the cache if we did get RRSIGs for a record we did not accept from an authoritative server --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 4332fd714..1304bd036 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1212,6 +1212,8 @@ int SyncRes::doResolveAt(map > &nameservers, D // cout<<"Have "<second.records.size()<<" records and "<second.signatures.size()<<" signatures for "<first.first.toString(); // cout<<'|'<first.second.getCode())<second.records.empty()) // this happens when we did store signatures, but passed on the records themselves + continue; t_RC->replace(d_now.tv_sec, i->first.name, QType(i->first.type), i->second.records, i->second.signatures, lwr.d_aabit, i->first.place == DNSResourceRecord::ANSWER ? ednsmask : boost::optional()); if(i->first.place == DNSResourceRecord::ANSWER && ednsmask) d_wasVariable=true;