From: Otto Moerbeek Date: Fri, 17 Apr 2020 08:17:09 +0000 (+0200) Subject: Simpify 'variable' condition: it boils down to having a reply from X-Git-Tag: rec-4.4.0-alpha1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca43e0dad4d7184523e6c14811fcc53cbfee45f4;p=thirdparty%2Fpdns.git Simpify 'variable' condition: it boils down to having a reply from the auth including an ednsmask, routingTag does not play a role. --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 0850b4914b..46d14e10a0 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -2842,7 +2842,7 @@ RCode::rcodes_ SyncRes::updateCacheFromRecords(unsigned int depth, LWResult& lwr } } - if(i->first.place == DNSResourceRecord::ANSWER && (ednsmask || d_routingTag)) + if(i->first.place == DNSResourceRecord::ANSWER && ednsmask) d_wasVariable=true; }