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)