diff options
author | jsing <> | 2014-07-10 07:43:11 +0000 |
---|---|---|
committer | jsing <> | 2014-07-10 07:43:11 +0000 |
commit | a4e67b1c13f505b2c40c8ea01a2d2c2d80b07750 (patch) | |
tree | 73c2d1cfd1c9669b272f8aeaa3441a982874c635 /src/lib/libcrypto/rsa/rsa_pmeth.c | |
parent | a056a5f9321e4e7d039f49d894e59dff155713aa (diff) | |
download | openbsd-a4e67b1c13f505b2c40c8ea01a2d2c2d80b07750.tar.gz openbsd-a4e67b1c13f505b2c40c8ea01a2d2c2d80b07750.tar.bz2 openbsd-a4e67b1c13f505b2c40c8ea01a2d2c2d80b07750.zip |
BN_free, BN_clear_free, BN_CTX_free, BN_BLINDING_free and BN_MONT_CTX_free
all have implicit NULL checks, so we do not need them here.
ok miod@
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_pmeth.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_pmeth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_pmeth.c b/src/lib/libcrypto/rsa/rsa_pmeth.c index f35b5800ab..e083ded40c 100644 --- a/src/lib/libcrypto/rsa/rsa_pmeth.c +++ b/src/lib/libcrypto/rsa/rsa_pmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_pmeth.c,v 1.10 2014/07/09 19:51:38 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_pmeth.c,v 1.11 2014/07/10 07:43:11 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -151,8 +151,7 @@ pkey_rsa_cleanup(EVP_PKEY_CTX *ctx) | |||
151 | RSA_PKEY_CTX *rctx = ctx->data; | 151 | RSA_PKEY_CTX *rctx = ctx->data; |
152 | 152 | ||
153 | if (rctx) { | 153 | if (rctx) { |
154 | if (rctx->pub_exp) | 154 | BN_free(rctx->pub_exp); |
155 | BN_free(rctx->pub_exp); | ||
156 | free(rctx->tbuf); | 155 | free(rctx->tbuf); |
157 | free(rctx); | 156 | free(rctx); |
158 | } | 157 | } |