netdev: Fix command length passed to l_netlink_send

Quiet the following dmesg warning:
netlink: 16 bytes leftover after parsing attributes in process `iwd'.
This commit is contained in:
Andrew Zaborowski 2016-07-06 00:39:44 +02:00 committed by Denis Kenzior
parent e421af2a58
commit 9c99166e7a
1 changed files with 1 additions and 1 deletions

View File

@ -1290,7 +1290,7 @@ static void netdev_get_interface_callback(struct l_genl_msg *msg,
rtmmsg->ifi_family = AF_UNSPEC;
rtmmsg->ifi_index = *ifindex;
l_netlink_send(rtnl, RTM_GETLINK, 0, rtmmsg, bufsize,
l_netlink_send(rtnl, RTM_GETLINK, 0, rtmmsg, sizeof(struct ifinfomsg),
netdev_getlink_cb, netdev, NULL);
l_free(rtmmsg);