1
0

301-ip-link-fix-netlink-msg-size.patch 348 B

1234567891011
  1. --- a/networking/libiproute/iplink.c
  2. +++ b/networking/libiproute/iplink.c
  3. @@ -470,7 +470,7 @@ static int do_add_or_delete(char **argv,
  4. }
  5. xrtnl_open(&rth);
  6. ll_init_map(&rth);
  7. - if (type_str) {
  8. + if (type_str && rtm == RTM_NEWLINK) {
  9. struct rtattr *linkinfo = NLMSG_TAIL(&req.n);
  10. addattr_l(&req.n, sizeof(req), IFLA_LINKINFO, NULL, 0);