diff options
-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; |