diff options
author | Norman Ashley <nashley@cisco.com> | 2020-08-04 12:34:22 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-08-04 12:34:22 +1000 |
commit | 19b4e6f8feba9aeec5d4e0d0aacb11d143b59340 (patch) | |
tree | ddf819bd415b3b7121d769e5ae6e3f14628abc19 /crypto/cms | |
parent | e5b2cd5899b2631363740a40c76d96fd15d32d1c (diff) |
Coverity Fixes for issue #12531
Fixes #12531 on master branch.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12557)
Diffstat (limited to 'crypto/cms')
-rw-r--r-- | crypto/cms/cms_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/cms/cms_lib.c b/crypto/cms/cms_lib.c index 67f4fbb4ea..6e2a20c4b3 100644 --- a/crypto/cms/cms_lib.c +++ b/crypto/cms/cms_lib.c @@ -97,12 +97,12 @@ BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont) default: CMSerr(CMS_F_CMS_DATAINIT, CMS_R_UNSUPPORTED_TYPE); - return NULL; + goto err; } if (cmsbio) return BIO_push(cmsbio, cont); - +err: if (!icont) BIO_free(cont); return NULL; |