From: Daan De Meyer Date: Thu, 24 Aug 2023 07:00:04 +0000 (+0200) Subject: hostname: Make sure we pass error to bus_verify_polkit_async() X-Git-Tag: v255-rc1~656 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b56ee692334231f0312c2fd142b9f2a84da14ac9;p=thirdparty%2Fsystemd.git hostname: Make sure we pass error to bus_verify_polkit_async() Fixes #28943 --- diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 9ef45f8e75a..85904aabe98 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -1318,7 +1318,7 @@ static int method_describe(sd_bus_message *m, void *userdata, sd_bus_error *erro false, UID_INVALID, &c->polkit_registry, - NULL); + error); if (r == 0) return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */ diff --git a/src/shared/bus-polkit.c b/src/shared/bus-polkit.c index 3ff2726d4ab..904b897984a 100644 --- a/src/shared/bus-polkit.c +++ b/src/shared/bus-polkit.c @@ -480,6 +480,7 @@ int bus_verify_polkit_async( assert(call); assert(action); assert(registry); + assert(ret_error); r = check_good_user(call, good_user); if (r != 0)