From: Antonio Alvarez Feijoo Date: Fri, 12 Apr 2024 08:53:40 +0000 (+0200) Subject: bus-polkit: fix return value for `varlink_allow_interactive_authentication()` X-Git-Tag: v256-rc1~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=126928de766d0a76aa294f99acf663ed511b4b9a;p=thirdparty%2Fsystemd.git bus-polkit: fix return value for `varlink_allow_interactive_authentication()` Follow-up for d04c1a1c8e7c95daa483d8d52d5fc4c25fbc67f2 --- 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");