From: Pieter Lexis Date: Thu, 14 Jul 2016 22:14:41 +0000 (+0200) Subject: Compress 3 lines into 1 X-Git-Tag: auth-4.0.1~37^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd27d3de250b9cb79a1e2c70b1dbce5dba8534e2;p=thirdparty%2Fpdns.git Compress 3 lines into 1 --- diff --git a/pdns/validate.cc b/pdns/validate.cc index 6795710450..f3a94dc787 100644 --- a/pdns/validate.cc +++ b/pdns/validate.cc @@ -203,16 +203,13 @@ vState getKeysFor(DNSRecordOracle& dro, const DNSName& zone, keyset_t &keyset) } vector labels = zone.getRawLabels(); - vState state; - - state = Indeterminate; typedef std::multimap 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)) {