diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-02 21:44:18 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-02 21:46:10 +0000 |
commit | 1be279af2622b196cc4630c48254adc96071c7e9 (patch) | |
tree | 4c2d1a3568e11b5fa9e4631c80e79d46cf919049 /src/libstore/nar-info.cc | |
parent | 987a4a0be9978e568d736801f281791e54928ca3 (diff) |
Fix Narinfo corruption detection bug
The aim of this check was just to ensure each key occurs once.
Diffstat (limited to 'src/libstore/nar-info.cc')
-rw-r--r-- | src/libstore/nar-info.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/nar-info.cc b/src/libstore/nar-info.cc index c403d4bec..ca471463c 100644 --- a/src/libstore/nar-info.cc +++ b/src/libstore/nar-info.cc @@ -66,7 +66,7 @@ NarInfo::NarInfo(const Store & store, const std::string & s, const std::string & else if (name == "Sig") sigs.insert(value); else if (name == "CA") { - if (!value.empty()) throw corrupt(); + if (ca) throw corrupt(); // FIXME: allow blank ca or require skipping field? ca = parseContentAddressOpt(value); } |