]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/drivers/driver_nl80211.c
nl80211: Fix nl_mgmt handling in partial error case
authorJouni Malinen <j@w1.fi>
Tue, 31 Dec 2013 08:17:53 +0000 (10:17 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 31 Dec 2013 13:45:18 +0000 (15:45 +0200)
commit6f06766e71c0ccde04dbc896728a2e8f1d3a9df5
treec0fe00281a81a702b11ac20f65bc5751d2a6f7c3
parent4ea6a47133c00abfbf363343d0d07ae0e7dd5130
nl80211: Fix nl_mgmt handling in partial error case

If Action frame registration in nl80211_mgmt_subscribe_non_ap() failed
for any frame type, the previous implementation skipped
nl80211_mgmt_handle_register_eloop() call. This is not desirable since
none of the Action frame types could be received and even worse, the
following nl80211_destroy_eloop_handle() call for nl_mgmt would likely
result in crashing the process due to the ELOOP_SOCKET_INVALID XOR
operation. This could be triggered at least in a P2P group interface
startup failure case.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c