diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2017-01-24 01:44:01 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2017-01-24 01:44:01 +0000 |
commit | a503bd781452925efa03e8ce2ab58e37f7e6a557 (patch) | |
tree | e7816c22c9a00d14e9055df201f91d8efe32af45 /lib/libssl/ssl_sess.c | |
parent | 10d2a600ccfc8970d1b938e3afbf316aeb4cad12 (diff) |
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); |