]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/x509/x509_req.c
Stop raising ERR_R_MALLOC_FAILURE in most places
[thirdparty/openssl.git] / crypto / x509 / x509_req.c
index 94fa85679555f095a278bd8ea8328c41da5d7905..2a7836c23e352474b028a4ff85c41702ac6b6d83 100644 (file)
@@ -28,7 +28,7 @@ X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
 
     ret = X509_REQ_new_ex(x->libctx, x->propq);
     if (ret == NULL) {
-        ERR_raise(ERR_LIB_X509, ERR_R_MALLOC_FAILURE);
+        ERR_raise(ERR_LIB_X509, ERR_R_ASN1_LIB);
         goto err;
     }