diff options
author | 2014-07-10 07:43:11 +0000 | |
---|---|---|
committer | 2014-07-10 07:43:11 +0000 | |
commit | 323e3475f1da3db6e3b7e4f8288ec466cec2ddcc (patch) | |
tree | deaa0135b2ed87962dd5d5ec20a325746bd38f3e /lib/libcrypto/rsa/rsa_pmeth.c | |
parent | Use a while loop instead of an ifdowhile loop. (diff) | |
download | wireguard-openbsd-323e3475f1da3db6e3b7e4f8288ec466cec2ddcc.tar.xz wireguard-openbsd-323e3475f1da3db6e3b7e4f8288ec466cec2ddcc.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 'lib/libcrypto/rsa/rsa_pmeth.c')
-rw-r--r-- | lib/libcrypto/rsa/rsa_pmeth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libcrypto/rsa/rsa_pmeth.c b/lib/libcrypto/rsa/rsa_pmeth.c index f35b5800ab4..e083ded40c2 100644 --- a/lib/libcrypto/rsa/rsa_pmeth.c +++ b/lib/libcrypto/rsa/rsa_pmeth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_pmeth.c,v 1.10 2014/07/09 19:51:38 jsing Exp $ */ +/* $OpenBSD: rsa_pmeth.c,v 1.11 2014/07/10 07:43:11 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -151,8 +151,7 @@ pkey_rsa_cleanup(EVP_PKEY_CTX *ctx) RSA_PKEY_CTX *rctx = ctx->data; if (rctx) { - if (rctx->pub_exp) - BN_free(rctx->pub_exp); + BN_free(rctx->pub_exp); free(rctx->tbuf); free(rctx); } |