summaryrefslogtreecommitdiffstats
path: root/providers/implementations/exchange/ecx_exch.c
diff options
context:
space:
mode:
Diffstat (limited to 'providers/implementations/exchange/ecx_exch.c')
-rw-r--r--providers/implementations/exchange/ecx_exch.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/providers/implementations/exchange/ecx_exch.c b/providers/implementations/exchange/ecx_exch.c
index 7e223f28c8..374f436c89 100644
--- a/providers/implementations/exchange/ecx_exch.c
+++ b/providers/implementations/exchange/ecx_exch.c
@@ -46,10 +46,8 @@ static void *ecx_newctx(void *provctx, size_t keylen)
return NULL;
ctx = OPENSSL_zalloc(sizeof(PROV_ECX_CTX));
- if (ctx == NULL) {
- ERR_raise(ERR_LIB_PROV, ERR_R_MALLOC_FAILURE);
+ if (ctx == NULL)
return NULL;
- }
ctx->keylen = keylen;
@@ -140,10 +138,8 @@ static void *ecx_dupctx(void *vecxctx)
return NULL;
dstctx = OPENSSL_zalloc(sizeof(*srcctx));
- if (dstctx == NULL) {
- ERR_raise(ERR_LIB_PROV, ERR_R_MALLOC_FAILURE);
+ if (dstctx == NULL)
return NULL;
- }
*dstctx = *srcctx;
if (dstctx->key != NULL && !ossl_ecx_key_up_ref(dstctx->key)) {