Fix error code name.
[openssl.git] / crypto / pkcs7 / pk7_mime.c
index 211534d87a213b4c107e3dc53e41e64fc4c63911..2d321a9e9153bfe4d7ba4a7b1706dde6cf0cf071 100644 (file)
@@ -121,7 +121,7 @@ int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags)
                bio = BIO_new_PKCS7(out, p7);
                if (!bio)
                        {
                bio = BIO_new_PKCS7(out, p7);
                if (!bio)
                        {
-                       PKCS7err(PKCS7_F_PKCS7_BIO_STREAM,ERR_R_MALLOC_FAILURE);
+                       PKCS7err(PKCS7_F_I2D_PKCS7_BIO_STREAM,ERR_R_MALLOC_FAILURE);
                        return 0;
                        }
                SMIME_crlf_copy(in, bio, flags);
                        return 0;
                        }
                SMIME_crlf_copy(in, bio, flags);