diff options
Diffstat (limited to 'network/connection.c')
-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); |