]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Compress 3 lines into 1
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 14 Jul 2016 22:14:41 +0000 (00:14 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Jul 2016 13:05:07 +0000 (15:05 +0200)
pdns/validate.cc

index 6795710450217d1b8b7d25808b04632c6543a495..f3a94dc78781919d83815a51808fbb16e8f50e6f 100644 (file)
@@ -203,16 +203,13 @@ vState getKeysFor(DNSRecordOracle& dro, const DNSName& zone, keyset_t &keyset)
   }
 
   vector<string> labels = zone.getRawLabels();
-  vState state;
-
-  state = Indeterminate;
 
   typedef std::multimap<uint16_t, DSRecordContent> dsmap_t;
   dsmap_t dsmap;
   keyset_t validkeys;
 
   DNSName qname = lowestTA;
-  state = Secure; // the lowest Trust Anchor is secure
+  vState state = Secure; // the lowest Trust Anchor is secure
 
   while(zone.isPartOf(qname))
   {