Err isn't always malloc failure.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 1 Aug 2015 14:37:01 +0000 (15:37 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 12 Aug 2015 12:54:56 +0000 (13:54 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/cms/cms_smime.c

index b33bc1d..6bed211 100644 (file)
@@ -804,7 +804,7 @@ int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags)
     int ret = 0;
 
     if ((cmsbio = CMS_dataInit(cms, dcont)) == NULL) {
-        CMSerr(CMS_F_CMS_FINAL, ERR_R_MALLOC_FAILURE);
+        CMSerr(CMS_F_CMS_FINAL, CMS_R_CMS_LIB);
         return 0;
     }