]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/ec/ec_curve.c
Stop raising ERR_R_MALLOC_FAILURE in most places
[thirdparty/openssl.git] / crypto / ec / ec_curve.c
index b5b2f3342dfb550b87da7feb758637a7d69c6a4f..2bf6522e8427f40be3fb4dd456c7f51ae7c5ff5b 100644 (file)
@@ -3151,7 +3151,7 @@ static EC_GROUP *ec_group_new_from_data(OSSL_LIB_CTX *libctx,
                                     curve.meth != NULL ? curve.meth() : NULL);
 
     if ((ctx = BN_CTX_new_ex(libctx)) == NULL) {
-        ERR_raise(ERR_LIB_EC, ERR_R_MALLOC_FAILURE);
+        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
         goto err;
     }