diff options
author | Doug Hogan <doug@cvs.openbsd.org> | 2014-07-25 06:05:33 +0000 |
---|---|---|
committer | Doug Hogan <doug@cvs.openbsd.org> | 2014-07-25 06:05:33 +0000 |
commit | 3f6f56f88d0b43e70952f28437c1872f732542c3 (patch) | |
tree | ecc44b6abb46886be9db095c6e874c37007c483e /lib/libcrypto/cms | |
parent | 325e66f18b509fc53d281184b1c8e88f97b84468 (diff) |
BIO_free() returns immediately when the sole input is NULL.
Remove unnecessary NULL check.
ok miod@
Diffstat (limited to 'lib/libcrypto/cms')
-rw-r--r-- | lib/libcrypto/cms/cms_lib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libcrypto/cms/cms_lib.c b/lib/libcrypto/cms/cms_lib.c index ee1f06c89ab..4ca38e24288 100644 --- a/lib/libcrypto/cms/cms_lib.c +++ b/lib/libcrypto/cms/cms_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms_lib.c,v 1.3 2014/06/12 15:49:28 deraadt Exp $ */ +/* $OpenBSD: cms_lib.c,v 1.4 2014/07/25 06:05:32 doug Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -360,8 +360,7 @@ cms_DigestAlgorithm_init_bio(X509_ALGOR *digestAlgorithm) return mdbio; err: - if (mdbio) - BIO_free(mdbio); + BIO_free(mdbio); return NULL; } |