mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
wpa_supplicant: Fix null pointer dereference if eap init failed
This commit is contained in:
parent
f4739d69ab
commit
45370f4fae
@ -502,6 +502,10 @@ struct tls_connection * tls_connection_init(void *tls_ctx)
|
||||
|
||||
void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn)
|
||||
{
|
||||
/* tls init failed case */
|
||||
if (!conn) {
|
||||
return;
|
||||
}
|
||||
/* Free ssl ctx and data */
|
||||
tls_mbedtls_conn_delete((tls_context_t *) conn->tls);
|
||||
os_free(conn->tls);
|
||||
|
Loading…
x
Reference in New Issue
Block a user