If SSID starts with 0x00 value, then ignore it
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 14 Jul 2009 10:26:48 +0000 (12:26 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 14 Jul 2009 10:26:48 +0000 (12:26 +0200)
plugins/supplicant.c

index 4b906a6..4d6f96d 100644 (file)
@@ -1026,6 +1026,9 @@ static void extract_ssid(DBusMessageIter *value,
        if (ssid_len < 1)
                return;
 
+       if (ssid[0] == '\0')
+               return;
+
        result->ssid = g_try_malloc(ssid_len);
        if (result->ssid == NULL)
                return;