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_ciph.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_ciph.c')
-rw-r--r-- | lib/libssl/ssl_ciph.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libssl/ssl_ciph.c b/lib/libssl/ssl_ciph.c index af5c83fcaf0..5a5bb165d84 100644 --- a/lib/libssl/ssl_ciph.c +++ b/lib/libssl/ssl_ciph.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_ciph.c,v 1.89 2016/11/06 12:08:32 jsing Exp $ */ +/* $OpenBSD: ssl_ciph.c,v 1.90 2017/01/24 01:44:00 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1516,11 +1516,9 @@ ssl_create_cipher_list(const SSL_METHOD *ssl_method, sk_SSL_CIPHER_free(cipherstack); return NULL; } - if (*cipher_list != NULL) - sk_SSL_CIPHER_free(*cipher_list); + sk_SSL_CIPHER_free(*cipher_list); *cipher_list = cipherstack; - if (*cipher_list_by_id != NULL) - sk_SSL_CIPHER_free(*cipher_list_by_id); + sk_SSL_CIPHER_free(*cipher_list_by_id); *cipher_list_by_id = tmp_cipher_list; (void)sk_SSL_CIPHER_set_cmp_func(*cipher_list_by_id, ssl_cipher_ptr_id_cmp); |