Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8691)
if (filesize < 0) {
BIO_printf(bio_err,
"Error: unable to determine file size for oneshot operation\n");
- return rv;
+ goto end;
}
mbuf = app_malloc(filesize, "oneshot sign/verify buffer");
switch(pkey_op) {
}
break;
}
- OPENSSL_free(mbuf);
goto end;
}
}
end:
+ OPENSSL_free(mbuf);
EVP_MD_CTX_free(mctx);
return rv;
}