Message ID | 1492073828-26786-2-git-send-email-f.gruenbichler@proxmox.com |
---|---|
State | New |
Headers | show |
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 501c42d..32f12f5 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -607,7 +607,7 @@ struct tc_action *tcf_action_init_1(struct net *net, struct nlattr *nla, if (err < 0) goto err_mod; - if (tb[TCA_ACT_COOKIE]) { + if (name == NULL && tb[TCA_ACT_COOKIE]) { int cklen = nla_len(tb[TCA_ACT_COOKIE]); if (cklen > TC_COOKIE_MAX_SIZE) {