]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Be more careful with wpa_config_update_psk() call
authorJouni Malinen <j@w1.fi>
Tue, 25 Dec 2012 17:35:15 +0000 (19:35 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 25 Dec 2012 17:35:15 +0000 (19:35 +0200)
commit6350a148c46a8e6bdd5d699362cbbc1d7baad7b0
treeb9969ad05e38b7f6259356c53b7250324104c4d5
parentbb4d4deb4bbb7b094faa16fa41f1f49b062cbf22
P2P: Be more careful with wpa_config_update_psk() call

Commit bb4d4deb4bbb7b094faa16fa41f1f49b062cbf22 introduced a code path
that could potentially end up calling wpa_config_update_psk() with NULL
passphrase. While that may not happen in practice, it is better to make
sure it doesn't happen since that function will dereference the
passphrase pointer unconditionally.

Signed-hostap: Jouni Malinen <j@w1.fi>
wpa_supplicant/p2p_supplicant.c