network: mtu is neither a boolean nor a pointer
This commit is contained in:
parent
d6c0fdf492
commit
a7b6e29c1f
|
@ -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");
|
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);
|
r = sd_netlink_message_append_u32(m, IFLA_MTU, netdev->mtu);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_netdev_error_errno(netdev, r, "Could not append IFLA_MTU attribute: %m");
|
return log_netdev_error_errno(netdev, r, "Could not append IFLA_MTU attribute: %m");
|
||||||
|
|
Loading…
Reference in New Issue