mirror of
https://git.proxmox.com/git/fwupd
synced 2025-11-03 11:10:03 +00:00
trivial: Use the correct index value when getting the local file descriptor
I assume GLib in F25 is more strict about invalid values.
This commit is contained in:
parent
bc339aa657
commit
7419e9624a
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user