[PATCH] dbus ctrl interface: fix reply message success argument

Dan Williams dcbw
Mon Dec 4 11:58:07 PST 2006


A mistype caused the success argument not to be added to the reply
message.

Dan

--- wpa_supplicant/ctrl_iface_dbus_handlers.c.bak	2006-12-04 14:23:57.000000000 -0500
+++ wpa_supplicant/ctrl_iface_dbus_handlers.c	2006-12-04 14:23:59.000000000 -0500
@@ -64,7 +64,7 @@
 	unsigned int success = 1;
 
 	reply = dbus_message_new_method_return(message);
-	dbus_message_append_args(message, DBUS_TYPE_UINT32, &success,
+	dbus_message_append_args(reply, DBUS_TYPE_UINT32, &success,
 				 DBUS_TYPE_INVALID);
 	return reply;
 }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctrl-iface-dbus-handlers-reply-return.patch
Type: text/x-patch
Size: 438 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20061204/6713a0ca/attachment.bin 



More information about the Hostap mailing list