]> git.ipfire.org Git - thirdparty/hostap.git/commit
TLS client: Fix peer certificate event checking for probing
authorJouni Malinen <j@w1.fi>
Sat, 9 Feb 2019 14:10:47 +0000 (16:10 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 9 Feb 2019 23:43:50 +0000 (01:43 +0200)
commitfdd8a2f0b85bb5e2a2f23484c306df9cb2a65b69
treef050af3c46b069ac3942109d18e309b36327c841
parente5bffe1aa9e7324142bb70f6939487afd185ad31
TLS client: Fix peer certificate event checking for probing

conn->cred might be NULL here, so check for that explicitly before
checking whether conn->cred->cert_probe is set. This fixes a potential
NULL pointer dereference when going through peer certificates with
event_cb functionality enabled.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/tls/tlsv1_client_read.c