dbus: Fix interface list getter with multiple interfaces

There's a bug in the getter for the 'Interfaces' property
of /fi/w1/wpa_supplicant1 (new D-Bus interface) which causes a
'Segmentation Fault' when there are multiple interfaces.
This commit is contained in:
Catalin Drula 2011-03-16 12:30:09 +02:00 committed by Jouni Malinen
parent 4f6bd86d07
commit 5b49c9d5ed

View File

@ -893,7 +893,7 @@ DBusMessage * wpas_dbus_getter_interfaces(DBusMessage *message,
}
for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next)
paths[i] = wpa_s->dbus_new_path;
paths[i++] = wpa_s->dbus_new_path;
reply = wpas_dbus_simple_array_property_getter(message,
DBUS_TYPE_OBJECT_PATH,