File 4516-ssl-Avoid-internal-error-be-graceful.patch of Package erlang
From 74e40971fdf870bfa21a02551437fc3a23c4bea7 Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin <ingela@erlang.org>
Date: Fri, 16 Jul 2021 16:46:52 +0200
Subject: [PATCH 6/6] ssl: Avoid internal error, be graceful!
---
lib/ssl/src/tls_handshake_1_3.erl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/ssl/src/tls_handshake_1_3.erl b/lib/ssl/src/tls_handshake_1_3.erl
index 43d1c58318..ce96365a22 100644
--- a/lib/ssl/src/tls_handshake_1_3.erl
+++ b/lib/ssl/src/tls_handshake_1_3.erl
@@ -885,7 +885,9 @@ do_negotiated({start_handshake, PSK0},
catch
{Ref, #alert{} = Alert} ->
- Alert
+ Alert;
+ error:badarg ->
+ ?ALERT_REC(?ILLEGAL_PARAMETER, illegal_parameter_to_compute_key)
end.
--
2.26.2