aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-02-09 23:08:07 (GMT)
committerJouni Malinen <j@w1.fi>2019-02-11 00:35:29 (GMT)
commitfbc2123a14319035b36f493af7584200f6169244 (patch)
treef8b810492eed6635d718ca406bcfbca3b18ccad2
parent1ac9c020b5865bd1422a253a41deef2778481670 (diff)
downloadhostap-fbc2123a14319035b36f493af7584200f6169244.zip
hostap-fbc2123a14319035b36f493af7584200f6169244.tar.gz
hostap-fbc2123a14319035b36f493af7584200f6169244.tar.bz2
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 <j@w1.fi>
-rw-r--r--src/tls/tlsv1_server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tls/tlsv1_server.c b/src/tls/tlsv1_server.c
index 07840d4..4759509 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];