diff options
author | Linus Nordberg <linus@nordu.net> | 2015-08-06 16:30:13 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-08-06 16:30:13 +0200 |
commit | 2810ce9055ac455894b6b9df96928b288d039124 (patch) | |
tree | 76957571e53573cdbca06e070e89ead954a9a458 /tools | |
parent | 88c9e77bd30d723a02e4cc43ee39be9259f08033 (diff) |
Return correct extra-data for precerts too (closes CATLFISH-56).
Verify precerts in make tests too.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mergetools.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/mergetools.py b/tools/mergetools.py index 9e84038..9f5feee 100644 --- a/tools/mergetools.py +++ b/tools/mergetools.py @@ -31,8 +31,9 @@ def unpack_entry(entry): pieces = [] while len(entry): (length,) = struct.unpack(">I", entry[0:4]) - data = entry[4:4+length] - entry = entry[4+length:] + type = entry[4:8] + data = entry[8:length] + entry = entry[length:] pieces.append(data) return pieces |