Index: net/base/dnssec_chain_verifier.cc |
diff --git a/net/base/dnssec_chain_verifier.cc b/net/base/dnssec_chain_verifier.cc |
index 6e6836549c2069fd51eadc78a3a2afffcbbbe9f3..c79efa8e9ccaa9e512998950e756f65cd28df3b5 100644 |
--- a/net/base/dnssec_chain_verifier.cc |
+++ b/net/base/dnssec_chain_verifier.cc |
@@ -732,12 +732,9 @@ DNSSECChainVerifier::Error DNSSECChainVerifier::ReadDSSet( |
} |
digest_types[i] = digest_type; |
- if (digest.size() > 0) { |
+ lookahead[i] = digest.empty(); |
+ if (!digest.empty()) |
(*rrdatas)[i] = digest; |
- lookahead[i] = false; |
- } else { |
- lookahead[i] = true; |
- } |
} |
base::StringPiece next_entry_key; |