projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stop raising ERR_R_MALLOC_FAILURE in most places
[openssl.git]
/
crypto
/
engine
/
eng_openssl.c
diff --git
a/crypto/engine/eng_openssl.c
b/crypto/engine/eng_openssl.c
index 91656e6b80840593a26aaafe15c15f6020d3fa1e..8b39e3dec7482d5bae377e29f75b5e8f3776219d 100644
(file)
--- a/
crypto/engine/eng_openssl.c
+++ b/
crypto/engine/eng_openssl.c
@@
-450,10
+450,8
@@
static int ossl_hmac_init(EVP_PKEY_CTX *ctx)
{
OSSL_HMAC_PKEY_CTX *hctx;
{
OSSL_HMAC_PKEY_CTX *hctx;
- if ((hctx = OPENSSL_zalloc(sizeof(*hctx))) == NULL) {
- ERR_raise(ERR_LIB_ENGINE, ERR_R_MALLOC_FAILURE);
+ if ((hctx = OPENSSL_zalloc(sizeof(*hctx))) == NULL)
return 0;
return 0;
- }
hctx->ktmp.type = V_ASN1_OCTET_STRING;
hctx->ctx = HMAC_CTX_new();
if (hctx->ctx == NULL) {
hctx->ktmp.type = V_ASN1_OCTET_STRING;
hctx->ctx = HMAC_CTX_new();
if (hctx->ctx == NULL) {