P2P: Fix P2P_FLUSH clearing of p2p_go_avoid_freq
authorIlan Peer <ilan.peer@intel.com>
Mon, 27 Jul 2015 19:24:30 +0000 (22:24 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 4 Aug 2015 15:59:59 +0000 (18:59 +0300)
commit85e152b646d5d877730e807c945aa31770f44fe2
tree7cf38a00f99cbf272c75fed408898de0064dca04
parent3a8f008a24a8e45d72c72741bc527eb8251758f7
P2P: Fix P2P_FLUSH clearing of p2p_go_avoid_freq

P2P_FLUSH command did not cleanly clear the p2p_go_avoid_freq data
structure, and left it in an inconsistent state, where the range field
was NULL but the num field was not 0. This would have resulted in an
invalid memory access in freq_range_list_includes().

Fix this.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/ctrl_iface.c