mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
sd-bus: drop redundant condition
By the previous commit, ALIGN8() is always equal to or greater than the argument.
This commit is contained in:
@@ -507,8 +507,7 @@ int bus_message_from_header(
|
||||
m->body_size = BUS_MESSAGE_BSWAP32(m, h->dbus1.body_size);
|
||||
|
||||
assert(message_size >= sizeof(struct bus_header));
|
||||
if (m->fields_size > message_size - sizeof(struct bus_header) ||
|
||||
ALIGN8(m->fields_size) > message_size - sizeof(struct bus_header) ||
|
||||
if (ALIGN8(m->fields_size) > message_size - sizeof(struct bus_header) ||
|
||||
m->body_size != message_size - sizeof(struct bus_header) - ALIGN8(m->fields_size))
|
||||
return -EBADMSG;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user