]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix debug print in GET_PREF_FREQ_LIST handler
authorJouni Malinen <jouni@codeaurora.org>
Mon, 15 Apr 2019 17:54:12 +0000 (20:54 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 15 Apr 2019 17:54:12 +0000 (20:54 +0300)
commite6ac47b47db70c77b2631b7669165a01f4de2ca8
treefa2b63b9b678a6f23465810543480a3d6bd02afb
parent2e70e807c8b89ce7b28c3d91843f89ef56e7fa7a
Fix debug print in GET_PREF_FREQ_LIST handler

Do not use the buf argument to wpas_ctrl_iface_get_pref_freq_list() in
the debug print since it points to the response buffer ("OK\n" without
null termination). This was supposed to print the cmd argument instead.
The previous version ended up using uninitialized heap memory from the
response buffer.

Fixes: 983422088f00 ("nl80211: Add means to query preferred channels")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/ctrl_iface.c