mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
dbus: Fix prop_changed_flags allocation to count properties correctly
There was an extra semicolon that broke the calculation of registered properties and resulted in obj_desc->prop_changed_flags not being allocated long enough for all the flags.
This commit is contained in:
parent
e30020c7ab
commit
6c195cd507
@ -757,7 +757,7 @@ static void wpas_dbus_register(struct wpa_dbus_object_desc *obj_desc,
|
||||
obj_desc->properties = properties;
|
||||
obj_desc->signals = signals;
|
||||
|
||||
for (n = 0; properties && properties->dbus_property; properties++);
|
||||
for (n = 0; properties && properties->dbus_property; properties++)
|
||||
n++;
|
||||
|
||||
obj_desc->prop_changed_flags = os_zalloc(n);
|
||||
|
Loading…
Reference in New Issue
Block a user