diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/tls13_lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_lib.c b/src/lib/libssl/tls13_lib.c index 9dbb7d6430..f064521c8b 100644 --- a/src/lib/libssl/tls13_lib.c +++ b/src/lib/libssl/tls13_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_lib.c,v 1.58 2021/03/21 18:36:34 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_lib.c,v 1.59 2021/04/07 21:48:23 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2019 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2019 Bob Beck <beck@openbsd.org> |
@@ -147,7 +147,8 @@ tls13_alert_sent_cb(uint8_t alert_desc, void *arg) | |||
147 | } | 147 | } |
148 | 148 | ||
149 | /* All other alerts are treated as fatal in TLSv1.3. */ | 149 | /* All other alerts are treated as fatal in TLSv1.3. */ |
150 | SSLerror(ctx->ssl, SSL_AD_REASON_OFFSET + alert_desc); | 150 | if (ctx->error.code == 0) |
151 | SSLerror(ctx->ssl, SSL_AD_REASON_OFFSET + alert_desc); | ||
151 | } | 152 | } |
152 | 153 | ||
153 | static void | 154 | static void |