From 126928de766d0a76aa294f99acf663ed511b4b9a Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Fri, 12 Apr 2024 10:53:40 +0200 Subject: [PATCH] bus-polkit: fix return value for `varlink_allow_interactive_authentication()` Follow-up for d04c1a1c8e7c95daa483d8d52d5fc4c25fbc67f2 --- src/shared/bus-polkit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shared/bus-polkit.c b/src/shared/bus-polkit.c index e0e9e879540..c0752b59bb0 100644 --- a/src/shared/bus-polkit.c +++ b/src/shared/bus-polkit.c @@ -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"); -- 2.47.3