diff options
author | Nikias Bassen | 2012-07-17 16:55:42 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 16:55:42 +0200 |
commit | f9e12502816a548a70c5c1009dc08e248de18bee (patch) | |
tree | ef2ee2c7ae36b53e5ac0dc08c4ba59aee48eb57d | |
parent | b51e3e5ae1de84ae6d16c933318689b6afcd1354 (diff) | |
download | idevicerestore-f9e12502816a548a70c5c1009dc08e248de18bee.tar.gz idevicerestore-f9e12502816a548a70c5c1009dc08e248de18bee.tar.bz2 |
mbn: move sig offset calculation to the right place
-rw-r--r-- | src/mbn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -55,11 +55,11 @@ void mbn_free(mbn_file* mbn) int mbn_update_sig_blob(mbn_file* mbn, const unsigned char* sigdata, unsigned int siglen) { - mbn->parsed_sig_offset = mbn->parsed_size - siglen; if (!mbn) { error("ERROR: %s: no data\n", __func__); return -1; } + mbn->parsed_sig_offset = mbn->parsed_size - siglen; if ((mbn->parsed_sig_offset + siglen) > mbn->parsed_size) { error("ERROR: %s: signature is larger than mbn file size\n", __func__); return -1; |