From 7419e9624aa960686f6cf4d0feb2391632b59ff1 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 22 Nov 2016 19:48:06 +0000 Subject: [PATCH] trivial: Use the correct index value when getting the local file descriptor I assume GLib in F25 is more strict about invalid values. --- src/fu-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fu-main.c b/src/fu-main.c index c5b6f39a0..8f40b81de 100644 --- a/src/fu-main.c +++ b/src/fu-main.c @@ -1972,7 +1972,7 @@ fu_main_daemon_method_call (GDBusConnection *connection, const gchar *sender, fu_main_invocation_return_error (priv, invocation, error); return; } - fd = g_unix_fd_list_get (fd_list, fd_handle, &error); + fd = g_unix_fd_list_get (fd_list, 0, &error); if (fd < 0) { fu_main_invocation_return_error (priv, invocation, error); return; @@ -2053,7 +2053,7 @@ fu_main_daemon_method_call (GDBusConnection *connection, const gchar *sender, fu_main_invocation_return_error (priv, invocation, error); return; } - fd = g_unix_fd_list_get (fd_list, fd_handle, &error); + fd = g_unix_fd_list_get (fd_list, 0, &error); if (fd < 0) { fu_main_invocation_return_error (priv, invocation, error); return; @@ -2091,7 +2091,7 @@ fu_main_daemon_method_call (GDBusConnection *connection, const gchar *sender, fu_main_invocation_return_error (priv, invocation, error); return; } - fd = g_unix_fd_list_get (fd_list, fd_handle, &error); + fd = g_unix_fd_list_get (fd_list, 0, &error); if (fd < 0) { fu_main_invocation_return_error (priv, invocation, error); return;