mirror of
https://github.com/systemd/systemd.git
synced 2025-02-09 13:57:42 +03:00
bus-polkit: fix return value for varlink_allow_interactive_authentication()
Follow-up for d04c1a1c8e7c95daa483d8d52d5fc4c25fbc67f2
This commit is contained in:
parent
c71b50179e
commit
126928de76
@ -728,8 +728,10 @@ static bool varlink_allow_interactive_authentication(Varlink *link) {
|
||||
* always under the same name. */
|
||||
|
||||
r = varlink_get_current_parameters(link, &v);
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r < 0) {
|
||||
log_debug_errno(r, "Unable to query current parameters: %m");
|
||||
return false;
|
||||
}
|
||||
|
||||
JsonVariant *b;
|
||||
b = json_variant_by_key(v, "allowInteractiveAuthentication");
|
||||
|
Loading…
x
Reference in New Issue
Block a user