mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
resolved: don't trip up when an rtlink message does not include the MTU
This commit is contained in:
parent
ea30eb86e5
commit
c5ed93163e
@ -91,10 +91,7 @@ int link_update_rtnl(Link *l, sd_rtnl_message *m) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = sd_rtnl_message_read_u32(m, IFLA_MTU, &l->mtu);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
sd_rtnl_message_read_u32(m, IFLA_MTU, &l->mtu);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user