hostname: Make sure we pass error to bus_verify_polkit_async()

Fixes #28943
This commit is contained in:
Daan De Meyer
2023-08-24 09:00:04 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent c9c4e599fc
commit b56ee69233
2 changed files with 2 additions and 1 deletions

View File

@@ -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 */

View File

@@ -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)