D-Bus: Fix property change timer update
authorJouni Malinen <j@w1.fi>
Wed, 31 Dec 2014 21:20:01 +0000 (23:20 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 2 Jan 2015 20:50:26 +0000 (22:50 +0200)
eloop_is_timeout_registered() was called with incorrect context argument
which meant that the pending timeout would have never been found.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/dbus/dbus_new_helpers.c

index 8df7ac1..37516e6 100644 (file)
@@ -904,7 +904,7 @@ void wpa_dbus_mark_property_changed(struct wpas_dbus_priv *iface,
        }
 
        if (!eloop_is_timeout_registered(flush_object_timeout_handler,
-                                        iface->con, obj_desc->path)) {
+                                        iface->con, obj_desc)) {
                eloop_register_timeout(0, WPA_DBUS_SEND_PROP_CHANGED_TIMEOUT,
                                       flush_object_timeout_handler,
                                       iface->con, obj_desc);