diff options
author | jsing <> | 2022-01-04 11:17:11 +0000 |
---|---|---|
committer | jsing <> | 2022-01-04 11:17:11 +0000 |
commit | eecca3168d4e6703e9f977f8f602e55d994ff03e (patch) | |
tree | f9297ba75d31f0f630602637fdb43bb45e70255e /src/lib | |
parent | 7d200a7d3a5fc2b8545169036a9f387002d98fce (diff) | |
download | openbsd-eecca3168d4e6703e9f977f8f602e55d994ff03e.tar.gz openbsd-eecca3168d4e6703e9f977f8f602e55d994ff03e.tar.bz2 openbsd-eecca3168d4e6703e9f977f8f602e55d994ff03e.zip |
Use normal result testing for tls1_check_curve().
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/ssl_clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c index 618126720c..3e4a4b3790 100644 --- a/src/lib/libssl/ssl_clnt.c +++ b/src/lib/libssl/ssl_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_clnt.c,v 1.124 2022/01/04 11:14:54 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_clnt.c,v 1.125 2022/01/04 11:17:11 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1358,7 +1358,7 @@ ssl3_get_server_kex_ecdhe(SSL *s, EVP_PKEY **pkey, CBS *cbs) | |||
1358 | * Check that the curve is one of our preferences - if it is not, | 1358 | * Check that the curve is one of our preferences - if it is not, |
1359 | * the server has sent us an invalid curve. | 1359 | * the server has sent us an invalid curve. |
1360 | */ | 1360 | */ |
1361 | if (tls1_check_curve(s, curve_id) != 1) { | 1361 | if (!tls1_check_curve(s, curve_id)) { |
1362 | SSLerror(s, SSL_R_WRONG_CURVE); | 1362 | SSLerror(s, SSL_R_WRONG_CURVE); |
1363 | ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_ILLEGAL_PARAMETER); | 1363 | ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_ILLEGAL_PARAMETER); |
1364 | goto err; | 1364 | goto err; |