aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_new_handlers.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-08 16:38:06 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-08 16:39:24 (GMT)
commit29065686acae64cea76b37e631f69722eb093096 (patch)
treec666a9670ca2389982b75fd2e5438d597959f0ef /wpa_supplicant/dbus/dbus_new_handlers.c
parentcc5bf65f2964493465672bd8dd61ba2ddc400d80 (diff)
downloadhostap-29065686acae64cea76b37e631f69722eb093096.zip
hostap-29065686acae64cea76b37e631f69722eb093096.tar.gz
hostap-29065686acae64cea76b37e631f69722eb093096.tar.bz2
D-Bus: Fix BSS Mode getter for invalid DMG BSS
Previous version could have used uninitialized char* when a DMG with invalid capabilities were added to BSS table from scan results. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/dbus/dbus_new_handlers.c')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index 7446f8d..e36226d 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -3699,6 +3699,9 @@ dbus_bool_t wpas_dbus_getter_bss_mode(
case IEEE80211_CAP_DMG_AP:
mode = "infrastructure";
break;
+ default:
+ mode = "";
+ break;
}
} else {
if (res->caps & IEEE80211_CAP_IBSS)