summaryrefslogtreecommitdiffstats
path: root/src/mbn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbn.c')
-rw-r--r--src/mbn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbn.c b/src/mbn.c
index b6bce0b..d6a54f2 100644
--- a/src/mbn.c
+++ b/src/mbn.c
@@ -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;