]> granicus.if.org Git - pdns/commitdiff
two non-address records sort equal
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 15 Aug 2017 10:13:48 +0000 (12:13 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 15 Aug 2017 10:13:48 +0000 (12:13 +0200)
pdns/sortlist.cc

index 49a51bfb129f9e95b8568bee9ef66618b44afd21..5ce76f125f0f620d14ccfdba4b4660c0b4409cff 100644 (file)
@@ -65,7 +65,7 @@ bool SortListOrderCmp::operator()(const DNSRecord& ar, const DNSRecord& br) cons
   else if(!aAddr && bAddr)
     return true;
   else if(!aAddr && !bAddr)
-    return true;
+    return false;
   
 
   int aOrder=std::numeric_limits<int>::max();