summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-06-07 17:35:50 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-06-07 17:35:50 +0000
commita4975685d05b27df34aeddcf6f779cb85fc0363f (patch)
treebc4ae15a0cb46638be00c1c46efe0d01bb458ab0
parent57f4b63637b997ef4f5faddea51514598551f7ec (diff)
Another small readability tweak: compare explicitly against 0 and NULL,
respectively ok jsing
-rw-r--r--lib/libssl/ssl_clnt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libssl/ssl_clnt.c b/lib/libssl/ssl_clnt.c
index 6f93b55ddce..281865aaea0 100644
--- a/lib/libssl/ssl_clnt.c
+++ b/lib/libssl/ssl_clnt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_clnt.c,v 1.143 2022/06/07 17:14:17 tb Exp $ */
+/* $OpenBSD: ssl_clnt.c,v 1.144 2022/06/07 17:35:49 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -652,9 +652,8 @@ ssl3_send_client_hello(SSL *s)
}
s->version = max_version;
- if (sess == NULL ||
- sess->ssl_version != s->version ||
- (!sess->session_id_length && !sess->tlsext_tick) ||
+ if (sess == NULL || sess->ssl_version != s->version ||
+ (sess->session_id_length == 0 && sess->tlsext_tick == NULL) ||
sess->not_resumable) {
if (!ssl_get_new_session(s, 0))
goto err;