aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/fwtool/src
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/fwtool/src')
-rw-r--r--package/system/fwtool/src/fwtool.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/system/fwtool/src/fwtool.c b/package/system/fwtool/src/fwtool.c
index e77b8b58e1..505fafcf7a 100644
--- 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);