WNM: Check wpa_s->current_bss more consistently
authorJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 13:21:59 +0000 (15:21 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 15:15:12 +0000 (17:15 +0200)
commit67adcd266c4ef3f9356190ef2c0727303f9532cb
tree6943f8823c34dafd76c6dcce0209a88cfb5f17f9
parent3ff8073db7846f643f57323c7c66d5ad68629110
WNM: Check wpa_s->current_bss more consistently

The scan result comparison routine would not make much sense without
current BSS level known, so return from the function without going
through the iteration that could have dereferenced the pointer if
wpa_s->current_bss == NULL.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wnm_sta.c