TDLS: Fix an interface addition error path
authorJouni Malinen <j@w1.fi>
Tue, 6 Jan 2015 20:54:52 +0000 (22:54 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 7 Jan 2015 11:19:00 +0000 (13:19 +0200)
commit52a80583ba56624358cfb1aa4ca6303420859e2f
tree2b0efebb6b35062759875fb58fb0eb43e8c4a8f4
parentf2d57282ad45ce78d21d5e3718affb3b12f28776
TDLS: Fix an interface addition error path

It is possible for wpa_tdls_teardown_peers() to be called with sm ==
NULL in case interface addition fails before the WPA state machine is
initialized.

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