act_connmark: avoid crashing on malformed nlattrs with null parms
am: 710fbeb3f5
Change-Id: Ie14c5fad2baf06f9d7669ef68b16023bd165af17
This commit is contained in:
commit
2e755cde9f
1 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,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(parm->index, a, bind)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue