diff options
author | miod <> | 2014-07-12 16:03:37 +0000 |
---|---|---|
committer | miod <> | 2014-07-12 16:03:37 +0000 |
commit | 1ae7466a2fdd60df6484d8d132d70a044fd58c92 (patch) | |
tree | b756e0522f06b8c8ef257885370d0ada8f818fa8 /src/lib/libcrypto/engine/eng_rsax.c | |
parent | 3c4c98fca81949fb441815860d40ad66626df65d (diff) | |
download | openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.tar.gz openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.tar.bz2 openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.zip |
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 'src/lib/libcrypto/engine/eng_rsax.c')
-rw-r--r-- | src/lib/libcrypto/engine/eng_rsax.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/libcrypto/engine/eng_rsax.c b/src/lib/libcrypto/engine/eng_rsax.c index daeb7e6ebb..358dac2088 100644 --- a/src/lib/libcrypto/engine/eng_rsax.c +++ b/src/lib/libcrypto/engine/eng_rsax.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: eng_rsax.c,v 1.9 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: eng_rsax.c,v 1.10 2014/07/12 16:03:37 miod Exp $ */ |
2 | /* Copyright (c) 2010-2010 Intel Corp. | 2 | /* Copyright (c) 2010-2010 Intel Corp. |
3 | * Author: Vinodh.Gopal@intel.com | 3 | * Author: Vinodh.Gopal@intel.com |
4 | * Jim Guilford | 4 | * Jim Guilford |
@@ -307,12 +307,9 @@ e_rsax_rsa_finish(RSA *rsa) | |||
307 | free(hptr); | 307 | free(hptr); |
308 | RSA_set_ex_data(rsa, rsax_ex_data_idx, NULL); | 308 | RSA_set_ex_data(rsa, rsax_ex_data_idx, NULL); |
309 | } | 309 | } |
310 | if (rsa->_method_mod_n) | 310 | BN_MONT_CTX_free(rsa->_method_mod_n); |
311 | BN_MONT_CTX_free(rsa->_method_mod_n); | 311 | BN_MONT_CTX_free(rsa->_method_mod_p); |
312 | if (rsa->_method_mod_p) | 312 | BN_MONT_CTX_free(rsa->_method_mod_q); |
313 | BN_MONT_CTX_free(rsa->_method_mod_p); | ||
314 | if (rsa->_method_mod_q) | ||
315 | BN_MONT_CTX_free(rsa->_method_mod_q); | ||
316 | return 1; | 313 | return 1; |
317 | } | 314 | } |
318 | 315 | ||