1
0
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:
Lennart Poettering 2014-07-17 19:32:10 +02:00
parent ea30eb86e5
commit c5ed93163e

View File

@ -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;
}