From fbc2123a14319035b36f493af7584200f6169244 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 10 Feb 2019 01:08:07 +0200 Subject: [PATCH] TLS: Fix AlertDescription for missing partial processing case tlsv1_record_receive() did not return error here and as such, &alert was not set and must not be used. Report internal error instead to avoid use of uninitialized memory. Signed-off-by: Jouni Malinen --- src/tls/tlsv1_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tls/tlsv1_server.c b/src/tls/tlsv1_server.c index 07840d4fb..4759509e5 100644 --- a/src/tls/tlsv1_server.c +++ b/src/tls/tlsv1_server.c @@ -164,7 +164,8 @@ u8 * tlsv1_server_handshake(struct tlsv1_server *conn, /* need more data */ wpa_printf(MSG_DEBUG, "TLSv1: Partial processing not " "yet supported"); - tlsv1_server_alert(conn, TLS_ALERT_LEVEL_FATAL, alert); + tlsv1_server_alert(conn, TLS_ALERT_LEVEL_FATAL, + TLS_ALERT_INTERNAL_ERROR); goto failed; } ct = pos[0];