]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/ec/eck_prn.c
Stop raising ERR_R_MALLOC_FAILURE in most places
[thirdparty/openssl.git] / crypto / ec / eck_prn.c
index 96ced7c8be0d2890070ad7b98c01d762c1a3678e..1bb58c6f338517cbd014a72c4901d68b0a46862a 100644 (file)
@@ -89,7 +89,7 @@ int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off)
 
     ctx = BN_CTX_new();
     if (ctx == NULL) {
-        reason = ERR_R_MALLOC_FAILURE;
+        reason = ERR_R_BN_LIB;
         goto err;
     }
 
@@ -127,7 +127,7 @@ int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off)
 
         if ((p = BN_new()) == NULL || (a = BN_new()) == NULL ||
             (b = BN_new()) == NULL) {
-            reason = ERR_R_MALLOC_FAILURE;
+            reason = ERR_R_BN_LIB;
             goto err;
         }