Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/ssl/tls13_lib.c b/ssl/tls13_lib.c
index 9dbb7d6430..f064521c8b 100644
--- a/ssl/tls13_lib.c
+++ b/ssl/tls13_lib.c
@@ -147,7 +147,8 @@ tls13_alert_sent_cb(uint8_t alert_desc, void *arg)
}

/* All other alerts are treated as fatal in TLSv1.3. */
- SSLerror(ctx->ssl, SSL_AD_REASON_OFFSET + alert_desc);
+ if (ctx->error.code == 0)
+ SSLerror(ctx->ssl, SSL_AD_REASON_OFFSET + alert_desc);
}

static void
2 changes: 2 additions & 0 deletions ports/libressl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ vcpkg_download_distfile(ARCHIVE
set(PATCHES
${CMAKE_CURRENT_LIST_DIR}/patches/0001-Remove-postfix-from-archive-name.patch
${CMAKE_CURRENT_LIST_DIR}/patches/0002-Disable-additional-warnings-for-Visual-Studio.patch
# Remove after next libressl release
${CMAKE_CURRENT_LIST_DIR}/patches/0003-Avoid-clobbering-the-error-code-when-sending-an-alert.patch
)

# Extract archive
Expand Down