summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa
diff options
context:
space:
mode:
authortedu <>2014-07-09 22:55:17 +0000
committertedu <>2014-07-09 22:55:17 +0000
commit5ec69e74aa00653b339f3f526529cd3c926c657a (patch)
tree1abb2b63f090ef7e75fd385ebcb478b3f21f5c06 /src/lib/libcrypto/rsa
parent555f9c8f48cb40e936e75dc7774680f7ba3e608d (diff)
downloadopenbsd-5ec69e74aa00653b339f3f526529cd3c926c657a.tar.gz
openbsd-5ec69e74aa00653b339f3f526529cd3c926c657a.tar.bz2
openbsd-5ec69e74aa00653b339f3f526529cd3c926c657a.zip
ASN1_STRING_free can handle NULL, so callers don't need to check. ok miod
Diffstat (limited to 'src/lib/libcrypto/rsa')
-rw-r--r--src/lib/libcrypto/rsa/rsa_ameth.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_ameth.c b/src/lib/libcrypto/rsa/rsa_ameth.c
index 813c634f31..679fe7b318 100644
--- a/src/lib/libcrypto/rsa/rsa_ameth.c
+++ b/src/lib/libcrypto/rsa/rsa_ameth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_ameth.c,v 1.8 2014/07/09 19:51:38 jsing Exp $ */ 1/* $OpenBSD: rsa_ameth.c,v 1.9 2014/07/09 22:55:17 tedu 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 */
@@ -625,8 +625,7 @@ err:
625 X509_ALGOR_free(mgf1alg); 625 X509_ALGOR_free(mgf1alg);
626 if (pss) 626 if (pss)
627 RSA_PSS_PARAMS_free(pss); 627 RSA_PSS_PARAMS_free(pss);
628 if (os1) 628 ASN1_STRING_free(os1);
629 ASN1_STRING_free(os1);
630 return rv; 629 return rv;
631 } 630 }
632 return 2; 631 return 2;