diff options
| author | tedu <> | 2014-07-09 22:55:17 +0000 |
|---|---|---|
| committer | tedu <> | 2014-07-09 22:55:17 +0000 |
| commit | 00639bfe4c41e004696976f685b376893b255e1a (patch) | |
| tree | 1abb2b63f090ef7e75fd385ebcb478b3f21f5c06 /src/lib/libcrypto/rsa | |
| parent | 0bb91fce2ccf507c4fd34e7277979e5ba7693e2f (diff) | |
| download | openbsd-00639bfe4c41e004696976f685b376893b255e1a.tar.gz openbsd-00639bfe4c41e004696976f685b376893b255e1a.tar.bz2 openbsd-00639bfe4c41e004696976f685b376893b255e1a.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.c | 5 |
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; |
