Send a dbus reply only if requested by the caller
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 9 Feb 2009 17:45:06 +0000 (19:45 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 9 Feb 2009 17:45:06 +0000 (19:45 +0200)
commitc3f5b1e16d119392ec30e3b5a0d015ee2aa3d664
tree2c94e4d9b51290b7d7f24870d936ec163e6c1f71
parent02a89365abba33fb462f739c325dc9cc3e847dae
Send a dbus reply only if requested by the caller

wpa_supplicant should not send a dbus reply as response to a method call
if no reply was requested by the caller. Sending a reply even if not
requested is basically no problem but triggers dbus warnings like the
one below.

Feb  9 07:31:23 linux-gvjr dbus-daemon: Rejected send message, 2 matched
rules; type="error", sender=":1.129" (uid=0 pid=30228
comm="/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wp")
interface="(unset)" member="(unset)" error
name="fi.epitest.hostap.WPASupplicant.InvalidInterface"
requested_reply=0 destination=":1.128" (uid=0 pid=30226
comm="/usr/sbin/NetworkManager "))

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
wpa_supplicant/ctrl_iface_dbus.c