]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Make sure band selection does not result in NULL dereference
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 1 Jun 2015 15:56:19 +0000 (18:56 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 2 Jun 2015 17:06:49 +0000 (20:06 +0300)
commit0980c7face3e623aec2a24fc99a2c2e15298d711
tree67c89eabc419af09398679f0ce7cfbae051d5746
parentdc1a341dec54c28c3351ee7edab9ccaf7b68861f
hostapd: Make sure band selection does not result in NULL dereference

Explicitly check for iface->current_mode before dereferencing it. While
this case may not happen in practice, it is better for the setup
functions to be more careful when doing the initial band selection.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/hw_features.c