projects
/
openwrt
/
staging
/
jogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db93949
)
fwtool: do not strip metadata if extracting signature
author
Felix Fietkau
<nbd@nbd.name>
Tue, 12 Feb 2019 14:59:11 +0000
(15:59 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 12 Feb 2019 15:41:38 +0000
(16:41 +0100)
This allows the signature to cover the metadata area
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/system/fwtool/src/fwtool.c
patch
|
blob
|
history
diff --git
a/package/system/fwtool/src/fwtool.c
b/package/system/fwtool/src/fwtool.c
index e77b8b58e11297d8e827bc7463bbdf69dccee5e2..505fafcf7a78b3110fc3d1d73c52d3f246893027 100644
(file)
--- a/
package/system/fwtool/src/fwtool.c
+++ b/
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);