Skip to content
Permalink
Browse files

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>
  • Loading branch information...
nbd168 committed Feb 12, 2019
1 parent db93949 commit d5681e45f047188bfa6897504c7c6888a57361a7
Showing with 3 additions and 1 deletion.
  1. +3 −1 package/system/fwtool/src/fwtool.c
@@ -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);

0 comments on commit d5681e4

Please sign in to comment.
You can’t perform that action at this time.