diff options
author | 2020-01-22 03:15:43 +0000 | |
---|---|---|
committer | 2020-01-22 03:15:43 +0000 | |
commit | 0e228d0f6abffd312b80276ade514c29378e6ed6 (patch) | |
tree | 13737297d1a4f7cac4f39c75edb0351fae1c71ce /lib/libssl/tls13_lib.c | |
parent | The legacy_record_version must be set to TLS1_2_VERSION except (diff) | |
download | wireguard-openbsd-0e228d0f6abffd312b80276ade514c29378e6ed6.tar.xz wireguard-openbsd-0e228d0f6abffd312b80276ade514c29378e6ed6.zip |
Don't add an extra unknown error if we got a fatal alert
ok jsing@
Diffstat (limited to 'lib/libssl/tls13_lib.c')
-rw-r--r-- | lib/libssl/tls13_lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/tls13_lib.c b/lib/libssl/tls13_lib.c index e353e9fdadb..d92d3cb8b69 100644 --- a/lib/libssl/tls13_lib.c +++ b/lib/libssl/tls13_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_lib.c,v 1.18 2020/01/22 02:21:05 beck Exp $ */ +/* $OpenBSD: tls13_lib.c,v 1.19 2020/01/22 03:15:43 beck Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> * Copyright (c) 2019 Bob Beck <beck@openbsd.org> @@ -381,7 +381,8 @@ tls13_legacy_return_code(SSL *ssl, ssize_t ret) return 0; case TLS13_IO_FAILURE: - tls13_legacy_error(ssl); + if (S3I(ssl)->fatal_alert == 0) + tls13_legacy_error(ssl); return -1; case TLS13_IO_WANT_POLLIN: |