P2P: Fix possible NULL pointer dereference
authorAyala Beker <ayala.beker@intel.com>
Thu, 10 Dec 2015 10:56:02 +0000 (12:56 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 17 Dec 2015 22:24:51 +0000 (00:24 +0200)
commit1b3dd69d93a082a33fb442997e2fa5ab492010ac
treec4ad198c700cc37495fe5cefdd00d49bf315bcb0
parent05736da8c6b237eb8e2de178381d56ea9fe76c21
P2P: Fix possible NULL pointer dereference

Fix wpas_p2p_invite() to call p2p_set_own_pref_freq_list() after the
NULL check, to avoid NULL pointer dereference if P2P initialization were
to have failed or P2P module getting deinitialized.

Signed-off-by: Ayala Beker <ayala.beker@intel.com>
wpa_supplicant/p2p_supplicant.c