mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Err isn't always malloc failure.
Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
ade44dcb16
commit
a187e08d85
@ -804,7 +804,7 @@ int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if ((cmsbio = CMS_dataInit(cms, dcont)) == NULL) {
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user