]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - providers/implementations/ciphers/cipher_rc5.c
Stop raising ERR_R_MALLOC_FAILURE in most places
[thirdparty/openssl.git] / providers / implementations / ciphers / cipher_rc5.c
index 5c7d2b1721c01759cf0820be4efa2239b16ee0c1..54fd4fba03714802d44b007b7b9b0a8cfa874198 100644 (file)
@@ -47,10 +47,8 @@ static void *rc5_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;
-    }
     *ret = *in;
 
     return ret;