summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-12-07 06:10:45 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-07 08:59:21 +0100
commita7b6e29c1fdf59acfbcf73898854908795e110f1 (patch)
treee3812c0096db7429e62b255f31812f2436c98552
parentmissing: Define several syscall numbers for Alpha arch (diff)
downloadsystemd-a7b6e29c1fdf59acfbcf73898854908795e110f1.tar.xz
systemd-a7b6e29c1fdf59acfbcf73898854908795e110f1.zip
network: mtu is neither a boolean nor a pointer
-rw-r--r--src/network/netdev/netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c
index 9223f43b99..755a67fea8 100644
--- a/src/network/netdev/netdev.c
+++ b/src/network/netdev/netdev.c
@@ -552,7 +552,7 @@ static int netdev_create(NetDev *netdev, Link *link, link_netlink_message_handle
return log_netdev_error_errno(netdev, r, "Could not append IFLA_ADDRESS attribute: %m");
}
- if (netdev->mtu) {
+ if (netdev->mtu != 0) {
r = sd_netlink_message_append_u32(m, IFLA_MTU, netdev->mtu);
if (r < 0)
return log_netdev_error_errno(netdev, r, "Could not append IFLA_MTU attribute: %m");