mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
sd-rtnl: message - don't skip parts of message when parsing
If a message type occurs repeatedly let the last one win. Also, don't skip type == MAX. Based on patch from: Susant Sahani <susant@redhat.com>
This commit is contained in:
parent
374c356979
commit
a212d0dadd
@ -1016,7 +1016,7 @@ int rtnl_message_parse(sd_rtnl_message *m,
|
||||
for (; RTA_OK(rta, rt_len); rta = RTA_NEXT(rta, rt_len)) {
|
||||
type = rta->rta_type;
|
||||
|
||||
if (type < max && !tb[type])
|
||||
if (type <= max)
|
||||
tb[type] = (uint8_t *) rta - (uint8_t *) m->hdr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user