]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Do an exact comapre, since set.count can only return 0 or 1 8813/head
authorRobin Geuze <robing@transip.nl>
Wed, 12 Aug 2020 15:17:35 +0000 (17:17 +0200)
committerRobin Geuze <robing@transip.nl>
Mon, 8 Feb 2021 09:36:35 +0000 (10:36 +0100)
pdns/pdnsutil.cc

index f5e298da3c3384cbade43084337d23da18652c92..f5194473efb872d1b7521f91ef7af2d1e1b4a9cd 100644 (file)
@@ -724,7 +724,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con
     set<string> messaged;
 
     for (const auto &value : metaData.second) {
-      if (seen.count(value) <= 0) {
+      if (seen.count(value) == 0) {
         seen.insert(value);
       } else if (messaged.count(value) <= 0) {
         cout << "[Error] Found duplicate metadata key value pair for zone " << zone << " with key '" << metaData.first << "' and value '" << value << "'" << endl;