]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/if_netlink.c
zebra: use correct attr size for netlink enc
[mirror_frr.git] / zebra / if_netlink.c
index c71b95f753ad894648408b6962691642db21d69b..1ababec9bd1e175ae8350ed408947fdc247bdc58 100644 (file)
@@ -1431,7 +1431,7 @@ int netlink_protodown(struct interface *ifp, bool down)
 
        req.ifa.ifi_index = ifp->ifindex;
 
-       addattr_l(&req.n, sizeof(req), IFLA_PROTO_DOWN, &down, 4);
+       addattr_l(&req.n, sizeof(req), IFLA_PROTO_DOWN, &down, sizeof(down));
        addattr_l(&req.n, sizeof(req), IFLA_LINK, &ifp->ifindex, 4);
 
        return netlink_talk(netlink_talk_filter, &req.n, &zns->netlink_cmd, zns,