summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-01-24 13:51:48 +0000
committertb <>2022-01-24 13:51:48 +0000
commitac63f756e81606d450586281c14ce0c8cd70790c (patch)
treed3edb492613fdface6223e87c0b749b7c87fc31e /src
parent12a5d609ed535ca507ce00217fff3cc8f67f9e5c (diff)
downloadopenbsd-ac63f756e81606d450586281c14ce0c8cd70790c.tar.gz
openbsd-ac63f756e81606d450586281c14ce0c8cd70790c.tar.bz2
openbsd-ac63f756e81606d450586281c14ce0c8cd70790c.zip
In ssl3_get_server_key_exchange() switch a 'goto err' to
'goto fatal_err' so that the illegal_parameter alert is actually sent in case of X509_get0_pubkey() failure. ok inoguchi jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/ssl_clnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c
index 61c1d71c8e..7e4ef44b9c 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.137 2022/01/11 19:03:15 jsing Exp $ */ 1/* $OpenBSD: ssl_clnt.c,v 1.138 2022/01/24 13:51:48 tb 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 *
@@ -1378,7 +1378,7 @@ ssl3_get_server_key_exchange(SSL *s)
1378 if (pkey == NULL) { 1378 if (pkey == NULL) {
1379 al = SSL_AD_ILLEGAL_PARAMETER; 1379 al = SSL_AD_ILLEGAL_PARAMETER;
1380 SSLerror(s, SSL_R_UNKNOWN_CERTIFICATE_TYPE); 1380 SSLerror(s, SSL_R_UNKNOWN_CERTIFICATE_TYPE);
1381 goto err; 1381 goto fatal_err;
1382 } 1382 }
1383 1383
1384 if (SSL_USE_SIGALGS(s)) { 1384 if (SSL_USE_SIGALGS(s)) {