mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
fwtool: do not strip metadata if extracting signature
This allows the signature to cover the metadata area Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
db93949aa3
commit
d5681e45f0
@ -347,8 +347,10 @@ extract_data(const char *name)
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
break;
|
break;
|
||||||
} else if (tr.type == FWIMAGE_INFO) {
|
} else if (tr.type == FWIMAGE_INFO) {
|
||||||
if (!metadata_file)
|
if (!metadata_file) {
|
||||||
|
dbuf.file_len += data_len + sizeof(tr);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
hdr = buf;
|
hdr = buf;
|
||||||
data_len -= sizeof(*hdr);
|
data_len -= sizeof(*hdr);
|
||||||
|
Loading…
Reference in New Issue
Block a user