From: jsing Date: Tue, 4 Jan 2022 11:17:11 +0000 (+0000) Subject: Use normal result testing for tls1_check_curve(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2e52d851aa4e0de40359a004d5221ca07e17c49e;p=openbsd Use normal result testing for tls1_check_curve(). --- diff --git a/lib/libssl/ssl_clnt.c b/lib/libssl/ssl_clnt.c index 618126720c5..3e4a4b37905 100644 --- a/lib/libssl/ssl_clnt.c +++ b/lib/libssl/ssl_clnt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_clnt.c,v 1.124 2022/01/04 11:14:54 jsing Exp $ */ +/* $OpenBSD: ssl_clnt.c,v 1.125 2022/01/04 11:17:11 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1358,7 +1358,7 @@ ssl3_get_server_kex_ecdhe(SSL *s, EVP_PKEY **pkey, CBS *cbs) * Check that the curve is one of our preferences - if it is not, * the server has sent us an invalid curve. */ - if (tls1_check_curve(s, curve_id) != 1) { + if (!tls1_check_curve(s, curve_id)) { SSLerror(s, SSL_R_WRONG_CURVE); ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_ILLEGAL_PARAMETER); goto err;