iwd: Fix agent DBus method parameter types

The object path DBus type wasn't being used correctly in the parameters
signatures, fix them.
This commit is contained in:
Andrew Zaborowski 2021-02-11 15:50:14 +01:00 committed by Thomas Haller
parent c8b283b818
commit 190ed7b2c9
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -1282,14 +1282,14 @@ get_agent_request_network_path(GDBusMethodInvocation *invocation)
const char *network_path = NULL;
if (nm_streq(method_name, "RequestPassphrase"))
g_variant_get(params, "(s)", &network_path);
g_variant_get(params, "(o)", &network_path);
else if (nm_streq(method_name, "RequestPrivateKeyPassphrase"))
g_variant_get(params, "(s)", &network_path);
g_variant_get(params, "(o)", &network_path);
else if (nm_streq(method_name, "RequestUserNameAndPassword"))
g_variant_get(params, "(s)", &network_path);
g_variant_get(params, "(o)", &network_path);
else if (nm_streq(method_name, "RequestUserPassword")) {
const char *user;
g_variant_get(params, "(ss)", &network_path, &user);
g_variant_get(params, "(os)", &network_path, &user);
}
return network_path;