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>
This commit is contained in:
parent
c6231b5e1e
commit
324ade51e1
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ static void tls_cert_chain_failure_event(struct tlsv1_client *conn, int depth,
|
||||||
union tls_event_data ev;
|
union tls_event_data ev;
|
||||||
char subject[128];
|
char subject[128];
|
||||||
|
|
||||||
if (!conn->event_cb)
|
if (!conn->event_cb || !cert)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
os_memset(&ev, 0, sizeof(ev));
|
os_memset(&ev, 0, sizeof(ev));
|
||||||
|
|
Loading…
Reference in a new issue