From: Jouni Malinen Date: Sun, 8 Jan 2017 16:38:06 +0000 (+0200) Subject: D-Bus: Fix BSS Mode getter for invalid DMG BSS X-Git-Tag: hostap_2_7~1772 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29065686acae64cea76b37e631f69722eb093096;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c index 7446f8d88..e36226d86 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)