diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-17 19:32:10 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-17 19:39:50 +0200 |
commit | c5ed93163e6ef51a7462aa558a7e0912b17c4951 (patch) | |
tree | 3fdf15a1f44193f6d00b5f907485d8bc43ac1ff8 /src/resolve | |
parent | ea30eb86e5a370fb8cb94e352e075e24d940d159 (diff) |
resolved: don't trip up when an rtlink message does not include the MTU
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-link.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c index e309b80728..1b175c8121 100644 --- a/src/resolve/resolved-link.c +++ b/src/resolve/resolved-link.c @@ -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; } |