diff options
author | 2014-07-09 22:55:17 +0000 | |
---|---|---|
committer | 2014-07-09 22:55:17 +0000 | |
commit | 6616ae0793ff80a08c6bab972a2b43a64de08491 (patch) | |
tree | a3f267ea1017e512f9deccbf2b08255a1272af67 /lib/libcrypto/rsa | |
parent | add some (currently failing) tests for openssl-like version number (1.0.1g) comparisons (diff) | |
download | wireguard-openbsd-6616ae0793ff80a08c6bab972a2b43a64de08491.tar.xz wireguard-openbsd-6616ae0793ff80a08c6bab972a2b43a64de08491.zip |
ASN1_STRING_free can handle NULL, so callers don't need to check. ok miod
Diffstat (limited to 'lib/libcrypto/rsa')
-rw-r--r-- | lib/libcrypto/rsa/rsa_ameth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libcrypto/rsa/rsa_ameth.c b/lib/libcrypto/rsa/rsa_ameth.c index 813c634f31b..679fe7b3188 100644 --- a/lib/libcrypto/rsa/rsa_ameth.c +++ b/lib/libcrypto/rsa/rsa_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_ameth.c,v 1.8 2014/07/09 19:51:38 jsing Exp $ */ +/* $OpenBSD: rsa_ameth.c,v 1.9 2014/07/09 22:55:17 tedu Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -625,8 +625,7 @@ err: X509_ALGOR_free(mgf1alg); if (pss) RSA_PSS_PARAMS_free(pss); - if (os1) - ASN1_STRING_free(os1); + ASN1_STRING_free(os1); return rv; } return 2; |