From: tb Date: Tue, 7 Jun 2022 17:35:49 +0000 (+0000) Subject: Another small readability tweak: compare explicitly against 0 and NULL, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b7965c0d9b6e66295d7c2c09e0bc1a96981ed61d;p=openbsd Another small readability tweak: compare explicitly against 0 and NULL, respectively ok jsing --- 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;