mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
act_connmark: avoid crashing on malformed nlattrs with null parms
am: 47c8dc47c0
Change-Id: Id90f1df9017b4c441658827c7b31b9f141498ad5
This commit is contained in:
@@ -113,6 +113,9 @@ static int tcf_connmark_init(struct net *net, struct nlattr *nla,
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (!tb[TCA_CONNMARK_PARMS])
|
||||
return -EINVAL;
|
||||
|
||||
parm = nla_data(tb[TCA_CONNMARK_PARMS]);
|
||||
|
||||
if (!tcf_hash_check(tn, parm->index, a, bind)) {
|
||||
|
||||
Reference in New Issue
Block a user