diff options
| author | jsing <> | 2017-01-24 15:04:12 +0000 |
|---|---|---|
| committer | jsing <> | 2017-01-24 15:04:12 +0000 |
| commit | a5881c323420e24efe94dede93a9f8fafc24b3b1 (patch) | |
| tree | fb6b6ff3ecbc97ee4bea29ec3959e5b5d8a7dc8f /src/lib/libssl/s3_clnt.c | |
| parent | 66e0d0ee54e4c4af19fda4ee640663c25db4ff98 (diff) | |
| download | openbsd-a5881c323420e24efe94dede93a9f8fafc24b3b1.tar.gz openbsd-a5881c323420e24efe94dede93a9f8fafc24b3b1.tar.bz2 openbsd-a5881c323420e24efe94dede93a9f8fafc24b3b1.zip | |
sk_free() checks for NULL so do not bother doing it from the callers.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/s3_clnt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index e44a025e57..ecd0f9e886 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s3_clnt.c,v 1.172 2017/01/24 14:57:31 jsing Exp $ */ | 1 | /* $OpenBSD: s3_clnt.c,v 1.173 2017/01/24 15:04:12 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1099,6 +1099,7 @@ err: | |||
| 1099 | EVP_PKEY_free(pkey); | 1099 | EVP_PKEY_free(pkey); |
| 1100 | X509_free(x); | 1100 | X509_free(x); |
| 1101 | sk_X509_pop_free(sk, X509_free); | 1101 | sk_X509_pop_free(sk, X509_free); |
| 1102 | |||
| 1102 | return (ret); | 1103 | return (ret); |
| 1103 | } | 1104 | } |
| 1104 | 1105 | ||
