mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Fix Narinfo corruption detection bug
The aim of this check was just to ensure each key occurs once.
This commit is contained in:
parent
987a4a0be9
commit
1be279af26
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue