bus-polkit: add one more assertion

For CID#1645013.
This commit is contained in:
Yu Watanabe
2026-02-17 16:39:38 +09:00
parent fad273450a
commit ce6ea42b69
+1 -3
View File
@@ -286,9 +286,7 @@ static int async_polkit_read_reply(sd_bus_message *reply, AsyncPolkitQuery *q) {
a = ASSERT_PTR(TAKE_PTR(q->action));
if (sd_bus_message_is_method_error(reply, NULL)) {
const sd_bus_error *e;
e = sd_bus_message_get_error(reply);
const sd_bus_error *e = ASSERT_PTR(sd_bus_message_get_error(reply));
if (bus_error_is_unknown_service(e)) {
/* If PK is absent, then store this away, as it depends on the callers flags whether