]> git.ipfire.org Git - thirdparty/hostap.git/commit
Check hostapd current_mode before dereferencing it in additional places
authorAshok Kumar Ponnaiah <aponnaia@qti.qualcomm.com>
Mon, 30 Oct 2017 21:17:05 +0000 (23:17 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Oct 2017 21:20:25 +0000 (23:20 +0200)
commit28d1264131598506ceaf9587f50d8e2e05f319f2
tree70484691792395983972518f4adea7df2b809c76
parent41d5af55440042cb56517c819318d287cbcd0918
Check hostapd current_mode before dereferencing it in additional places

While most places using this should be for cases where the hw_features
functionality is required, there seem to be some paths that are getting
exposed in new OWE related operations where that might not be the case.
Add explicit NULL pointer checks to avoid dereferencing the pointer if
it is not set when operating with driver wrappers that do not provide
sufficient information.

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