diff options
author | 2017-01-24 01:44:00 +0000 | |
---|---|---|
committer | 2017-01-24 01:44:00 +0000 | |
commit | 20238d6514cb2226da2e8e57a0fd19464e9bab61 (patch) | |
tree | d1fdc91109d4003fbe1af2b8fc7ea5112bc5bdac /lib/libssl/ssl_sess.c | |
parent | Fix passing &_DYNAMIC to _dl_boot_bind; makes -static -pie work. (diff) | |
download | wireguard-openbsd-20238d6514cb2226da2e8e57a0fd19464e9bab61.tar.xz wireguard-openbsd-20238d6514cb2226da2e8e57a0fd19464e9bab61.zip |
sk_SSL_CIPHER_free() checks for NULL so do not bother doing the same from
the callers.
Diffstat (limited to 'lib/libssl/ssl_sess.c')
-rw-r--r-- | lib/libssl/ssl_sess.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c index 2ebdf81b41f..307c730e3f3 100644 --- a/lib/libssl/ssl_sess.c +++ b/lib/libssl/ssl_sess.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_sess.c,v 1.65 2017/01/24 01:39:13 jsing Exp $ */ +/* $OpenBSD: ssl_sess.c,v 1.66 2017/01/24 01:44:00 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -704,8 +704,7 @@ SSL_SESSION_free(SSL_SESSION *ss) X509_free(ss->peer); - if (ss->ciphers != NULL) - sk_SSL_CIPHER_free(ss->ciphers); + sk_SSL_CIPHER_free(ss->ciphers); free(ss->tlsext_hostname); free(ss->tlsext_tick); |