mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
bus: fix size calculation for match data
This commit is contained in:
parent
34a2c9e841
commit
c6dfb87f1d
@ -549,7 +549,8 @@ static int add_name_change_match(sd_bus *bus,
|
||||
if (is_name_id != 0) {
|
||||
uint64_t sz =
|
||||
ALIGN8(offsetof(struct kdbus_cmd_match, items) +
|
||||
offsetof(struct kdbus_item, id_change));
|
||||
offsetof(struct kdbus_item, id_change) +
|
||||
sizeof(struct kdbus_notify_id_change));
|
||||
union {
|
||||
uint8_t buffer[sz];
|
||||
struct kdbus_cmd_match match;
|
||||
|
Loading…
Reference in New Issue
Block a user