summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2022-01-04 11:17:12 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2022-01-04 11:17:12 +0000
commit0147bd34f73355d174cb237a6a159b89194ce13c (patch)
treec03ff7f96b3e8869b5c7c178220ea5296cee0ff7 /lib/libssl
parentd03478c8271fe689c853bc8b2c4910b4dded4696 (diff)
Use normal result testing for tls1_check_curve().
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/ssl_clnt.c4
1 files changed, 2 insertions, 2 deletions
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;