mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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:
parent
4f6bd86d07
commit
5b49c9d5ed
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user