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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue