summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_depr.c
diff options
context:
space:
mode:
authorjsing <>2014-07-10 07:43:11 +0000
committerjsing <>2014-07-10 07:43:11 +0000
commit40e53c5982a60d9fb38f2df6ac78e7482219fc17 (patch)
tree73c2d1cfd1c9669b272f8aeaa3441a982874c635 /src/lib/libcrypto/rsa/rsa_depr.c
parentec8c499ef7f0ca14b52a751e7d060abd044b3472 (diff)
downloadopenbsd-40e53c5982a60d9fb38f2df6ac78e7482219fc17.tar.gz
openbsd-40e53c5982a60d9fb38f2df6ac78e7482219fc17.tar.bz2
openbsd-40e53c5982a60d9fb38f2df6ac78e7482219fc17.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_depr.c')
-rw-r--r--src/lib/libcrypto/rsa/rsa_depr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_depr.c b/src/lib/libcrypto/rsa/rsa_depr.c
index 7a3ecca666..f66c832b2a 100644
--- a/src/lib/libcrypto/rsa/rsa_depr.c
+++ b/src/lib/libcrypto/rsa/rsa_depr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_depr.c,v 1.5 2014/07/09 19:51:38 jsing Exp $ */ 1/* $OpenBSD: rsa_depr.c,v 1.6 2014/07/10 07:43:11 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -91,10 +91,9 @@ RSA_generate_key(int bits, unsigned long e_value,
91 return rsa; 91 return rsa;
92 } 92 }
93err: 93err:
94 if (e) 94 BN_free(e);
95 BN_free(e); 95 RSA_free(rsa);
96 if (rsa) 96
97 RSA_free(rsa);
98 return 0; 97 return 0;
99} 98}
100#endif 99#endif