D-Bus: Make the CurrentAuthMode property getter more robust
authorJouni Malinen <j@w1.fi>
Fri, 24 Jun 2016 20:49:08 +0000 (23:49 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 Jun 2016 20:49:08 +0000 (23:49 +0300)
commitfc1e2c0d91a15a13d30219a5f5d2878197368902
tree72483186403ede0582664d69ec2455cb27d0b1ea
parente7d454bb76d1fd88f976f561f0e7fe9df5453ed0
D-Bus: Make the CurrentAuthMode property getter more robust

Now that mesh sets wpa_s->wpa_state = WPA_COMPLETED, it looks like this
getter can get called with wpa_s->current_ssid = NULL. That could result
in NULL pointer dereference, so need to protect that specific case.

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