mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +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;
|
||||
break;
|
||||
} else if (tr.type == FWIMAGE_INFO) {
|
||||
if (!metadata_file)
|
||||
if (!metadata_file) {
|
||||
dbuf.file_len += data_len + sizeof(tr);
|
||||
break;
|
||||
}
|
||||
|
||||
hdr = buf;
|
||||
data_len -= sizeof(*hdr);
|
||||
|
Loading…
Reference in New Issue
Block a user