]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: do not compare port numbers in isMaster()
authorKees Monshouwer <mind04@monshouwer.org>
Fri, 1 Dec 2017 10:39:47 +0000 (11:39 +0100)
committermind04 <mind04@monshouwer.org>
Sat, 31 Mar 2018 21:40:21 +0000 (23:40 +0200)
pdns/dnsbackend.hh

index 5ea01a66f5cd92caaafcdd544cdda744e2b9bf96..0de177dd86b6881d566a1fbf816fcbc88cf3cfa6 100644 (file)
@@ -91,7 +91,7 @@ struct DomainInfo
   {
     for( const auto& master: masters) {
       const ComboAddress caMaster(master);
-      if(ip == caMaster)
+      if(ComboAddress::addressOnlyEqual()(ip, caMaster))
         return true;
     }
     return false;