]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: mtu is neither a boolean nor a pointer
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 7 Dec 2020 05:10:45 +0000 (14:10 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 7 Dec 2020 07:59:21 +0000 (08:59 +0100)
src/network/netdev/netdev.c

index 9223f43b9930a4cd13375088ecca894512072bd0..755a67fea8af267ee94cac360a245f696dc2036c 100644 (file)
@@ -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");