]> git.ipfire.org Git - thirdparty/hostap.git/commit
TDLS: Fix TPK M1 error case (CID 68214)
authorJouni Malinen <j@w1.fi>
Mon, 16 Jun 2014 22:55:36 +0000 (01:55 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 16 Jun 2014 22:57:35 +0000 (01:57 +0300)
commit7efc7f66b1d63b3bbb99d9176f6f68c4d1fc6327
treec9d6909967dbc7501cc14daf59499982472f25ff
parentd1bb7aeda4c374a856cf4b1b0564ba7d249a7401
TDLS: Fix TPK M1 error case (CID 68214)

Commit 342bce63cdb375bc64ce1cbcdb9e6f48acdea1e3 introduced a possibility
of a NULL pointer dereference on the error path if a new peer entry
fails to get added (i.e., memory allocation failure). Fix that by
skipping the wpa_tdls_peer_free() call if necessary.

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