diff options
| author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-04-12 12:49:42 +0000 | 
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-04-12 12:49:42 +0000 | 
| commit | ed17ae18d87cba8f8564bebde2f0707883b73d58 (patch) | |
| tree | 823a496a1e16618a97c19e8a8e023feff17f41c7 | |
| parent | 9743174631a196c41c50d30af936d62488e9b843 (diff) | |
Fix bug on GetInterface.
| -rw-r--r-- | network/connection.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/network/connection.c b/network/connection.c index 610e1e84..341ffae4 100644 --- a/network/connection.c +++ b/network/connection.c @@ -385,6 +385,7 @@ static DBusHandlerResult get_interface(DBusConnection *conn, DBusMessage *msg,  					void *data)  {  	struct network_conn *nc = data; +	const char *pdev = nc->dev;  	DBusMessage *reply;  	if (nc->state != CONNECTED) { @@ -396,7 +397,7 @@ static DBusHandlerResult get_interface(DBusConnection *conn, DBusMessage *msg,  	if (!reply)  		return DBUS_HANDLER_RESULT_NEED_MEMORY; -	dbus_message_append_args(reply, DBUS_TYPE_STRING, &nc->dev, +	dbus_message_append_args(reply, DBUS_TYPE_STRING, &pdev,  					DBUS_TYPE_INVALID);  	return send_message_and_unref(conn, reply); | 
