aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-12-28 16:31:11 (GMT)
committerJouni Malinen <j@w1.fi>2015-12-28 16:31:11 (GMT)
commit324ade51e168f28430f4429849becd0f08d507c0 (patch)
treec245b27caab1353d436dc0b0387290cb9a7da7ad /src/tls
parentc6231b5e1ead720f8c597686260383fc9c351c68 (diff)
downloadhostap-324ade51e168f28430f4429849becd0f08d507c0.zip
hostap-324ade51e168f28430f4429849becd0f08d507c0.tar.gz
hostap-324ade51e168f28430f4429849becd0f08d507c0.tar.bz2
TLS: Make tls_cert_chain_failure_event() more robust
Explicitly check for the failure event to include a certificate before trying to build the event. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/tls')
-rw-r--r--src/tls/tlsv1_client_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/tlsv1_client_read.c b/src/tls/tlsv1_client_read.c
index 89ef196..244c3cb 100644
--- a/src/tls/tlsv1_client_read.c
+++ b/src/tls/tlsv1_client_read.c
@@ -326,7 +326,7 @@ static void tls_cert_chain_failure_event(struct tlsv1_client *conn, int depth,
union tls_event_data ev;
char subject[128];
- if (!conn->event_cb)
+ if (!conn->event_cb || !cert)
return;
os_memset(&ev, 0, sizeof(ev));