dbus: Fix flush_object_timeout_handler context to be consistent
authorJouni Malinen <j@w1.fi>
Wed, 6 Jan 2010 09:50:43 +0000 (11:50 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 6 Jan 2010 09:50:43 +0000 (11:50 +0200)
commite30020c7ab6a2fc85fb60ce1255dd3956c27fb5d
tree9b87fe9be7bd676d7a8f6b97cb435b477893d255
parent0de4da91c1cc8bcdfd5b29aa7b33887a1f8e3775
dbus: Fix flush_object_timeout_handler context to be consistent

The path pointer used as the timeout_ctx was not constant; the path
string itself may have been the same, but the pointer certainly was not
since it was sometimes from stack and sometimes from the dynamically
allocated buffer in obj_desc. This caused some of the eloop timeout
cancellations not to find the timeout. Fix this by using the obj_desc
as the timeout context data.
wpa_supplicant/dbus/dbus_new_helpers.c