]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
D-Bus: Fix BSS Mode getter for invalid DMG BSS
authorJouni Malinen <j@w1.fi>
Sun, 8 Jan 2017 16:38:06 +0000 (18:38 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Jan 2017 16:39:24 +0000 (18:39 +0200)
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>
wpa_supplicant/dbus/dbus_new_handlers.c

index 7446f8d882b1bddc77425529ae8018a64c254ccb..e36226d86e616a027c5dc7c1d4f8940c3fd5796b 100644 (file)
@@ -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)