dbus: Fix prop_changed_flags allocation to count properties correctly
authorJouni Malinen <j@w1.fi>
Wed, 6 Jan 2010 09:55:21 +0000 (11:55 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 6 Jan 2010 09:55:21 +0000 (11:55 +0200)
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.

wpa_supplicant/dbus/dbus_new.c

index 9fc496d..7cde113 100644 (file)
@@ -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);