diff options
Diffstat (limited to 'onlineupdate')
-rw-r--r-- | onlineupdate/source/libmar/src/mar_read.c | 2 | ||||
-rw-r--r-- | onlineupdate/source/update/src/mar_read.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/onlineupdate/source/libmar/src/mar_read.c b/onlineupdate/source/libmar/src/mar_read.c index c7c4bdf19554..34f8e8060485 100644 --- a/onlineupdate/source/libmar/src/mar_read.c +++ b/onlineupdate/source/libmar/src/mar_read.c @@ -405,6 +405,8 @@ mar_read_product_info_block(MarFile *mar, &hasAdditionalBlocks, &offsetAdditionalBlocks, &numAdditionalBlocks); + if (ret) + return ret; for (i = 0; i < numAdditionalBlocks; ++i) { /* Read the additional block size */ if (fread(&additionalBlockSize, diff --git a/onlineupdate/source/update/src/mar_read.c b/onlineupdate/source/update/src/mar_read.c index c7c4bdf19554..34f8e8060485 100644 --- a/onlineupdate/source/update/src/mar_read.c +++ b/onlineupdate/source/update/src/mar_read.c @@ -405,6 +405,8 @@ mar_read_product_info_block(MarFile *mar, &hasAdditionalBlocks, &offsetAdditionalBlocks, &numAdditionalBlocks); + if (ret) + return ret; for (i = 0; i < numAdditionalBlocks; ++i) { /* Read the additional block size */ if (fread(&additionalBlockSize, |