sd-bus: drop SD_BUS_CREDS_AUGMENT flag

On checking if the message has enough credentials, the special flag
needs to be dropped.

Fixes a bug introduced by 705a415f68.
This commit is contained in:
Yu Watanabe
2023-11-16 09:35:44 +09:00
parent 22185cb71e
commit 02dd646b16
+1 -1
View File
@@ -655,7 +655,7 @@ _public_ int sd_bus_query_sender_creds(sd_bus_message *call, uint64_t mask, sd_b
c = sd_bus_message_get_creds(call);
/* All data we need? */
if (c && (mask & ~c->mask) == 0) {
if (c && (mask & ~SD_BUS_CREDS_AUGMENT & ~c->mask) == 0) {
*ret = sd_bus_creds_ref(c);
return 0;
}