]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - providers/implementations/ciphers/cipher_camellia.c
Stop raising ERR_R_MALLOC_FAILURE in most places
[thirdparty/openssl.git] / providers / implementations / ciphers / cipher_camellia.c
index b119666aa8b058b5cbc35131436831feeac9d361..c550af3f8330457a5832ff2e564823e33e68f470 100644 (file)
@@ -39,10 +39,8 @@ static void *camellia_dupctx(void *ctx)
         return NULL;
 
     ret = OPENSSL_malloc(sizeof(*ret));
-    if (ret == NULL) {
-        ERR_raise(ERR_LIB_PROV, ERR_R_MALLOC_FAILURE);
+    if (ret == NULL)
         return NULL;
-    }
     in->base.hw->copyctx(&ret->base, &in->base);
 
     return ret;