diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-07-12 16:03:38 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-07-12 16:03:38 +0000 |
commit | 803c8dd8383f2beecc51eeb93a0d74de48fde813 (patch) | |
tree | 7f45d2fc5e781e1974149986eb31d41236a274ec /lib/libcrypto/engine | |
parent | 5ea82a759638e52c9147469bf1c240afd43f265c (diff) |
if (x) FOO_free(x) -> FOO_free(x).
Improves readability, keeps the code smaller so that it is warmer in your
cache.
review & ok deraadt@
Diffstat (limited to 'lib/libcrypto/engine')
-rw-r--r-- | lib/libcrypto/engine/eng_rsax.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/libcrypto/engine/eng_rsax.c b/lib/libcrypto/engine/eng_rsax.c index daeb7e6ebbd..358dac20888 100644 --- a/lib/libcrypto/engine/eng_rsax.c +++ b/lib/libcrypto/engine/eng_rsax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eng_rsax.c,v 1.9 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: eng_rsax.c,v 1.10 2014/07/12 16:03:37 miod Exp $ */ /* Copyright (c) 2010-2010 Intel Corp. * Author: Vinodh.Gopal@intel.com * Jim Guilford @@ -307,12 +307,9 @@ e_rsax_rsa_finish(RSA *rsa) free(hptr); RSA_set_ex_data(rsa, rsax_ex_data_idx, NULL); } - if (rsa->_method_mod_n) - BN_MONT_CTX_free(rsa->_method_mod_n); - if (rsa->_method_mod_p) - BN_MONT_CTX_free(rsa->_method_mod_p); - if (rsa->_method_mod_q) - BN_MONT_CTX_free(rsa->_method_mod_q); + BN_MONT_CTX_free(rsa->_method_mod_n); + BN_MONT_CTX_free(rsa->_method_mod_p); + BN_MONT_CTX_free(rsa->_method_mod_q); return 1; } |