diff options
author | 2020-01-29 17:03:58 +0000 | |
---|---|---|
committer | 2020-01-29 17:03:58 +0000 | |
commit | ae613d71d249156d26e03c3677540a177f339483 (patch) | |
tree | 5355c1636ed704bf0ae2576d3c9821cac80d1360 /lib/libssl/tls13_client.c | |
parent | Warn if a message type that is no longer used is received. (diff) | |
download | wireguard-openbsd-ae613d71d249156d26e03c3677540a177f339483.tar.xz wireguard-openbsd-ae613d71d249156d26e03c3677540a177f339483.zip |
If the TLSv1.3 code has not recorded an error and something already exists
on the error stack, refrain from pushing an 'unknown' error on the stack.
This should allow libcrypto errors (including bio) to be visible, where we
have nothing better to offer.
ok tb@
Diffstat (limited to 'lib/libssl/tls13_client.c')
-rw-r--r-- | lib/libssl/tls13_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/tls13_client.c b/lib/libssl/tls13_client.c index f75f605ace0..3c55be6e680 100644 --- a/lib/libssl/tls13_client.c +++ b/lib/libssl/tls13_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_client.c,v 1.37 2020/01/26 06:55:17 jsing Exp $ */ +/* $OpenBSD: tls13_client.c,v 1.38 2020/01/29 17:03:58 jsing Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> * @@ -87,6 +87,7 @@ tls13_legacy_connect(SSL *ssl) } } + ERR_clear_error(); S3I(ssl)->hs.state = SSL_ST_CONNECT; ret = tls13_connect(ctx); |