]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wnm_sta.c
MBO: Fix possible NULL pointer dereference on candidate handling
authorPradeep Reddy Potteti <c_ppotte@qti.qualcomm.com>
Fri, 28 Apr 2017 10:52:08 +0000 (16:22 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 3 May 2017 15:30:31 +0000 (18:30 +0300)
commitf2a04874cfbc8541f6ede34c16333aac4e4671cb
tree7912e07d86c4c0511485402834c7bda6cfe7f0a3
parent01dd2b10548f28ce3fe45a6f4b32307c7f21eafa
MBO: Fix possible NULL pointer dereference on candidate handling

If the driver provides input on MBO transition candidate handling, the
target value in get_mbo_transition_candidate() can be NULL if the driver
provided BSSID is not found in the wpa_supplicant BSS table. And later
it would be dereferenced. Fix this by adding an explicit check before
dereferencing the pointer.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/wnm_sta.c