mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
act_connmark: avoid crashing on malformed nlattrs with null parms
am: 710fbeb3f5
Change-Id: Ie14c5fad2baf06f9d7669ef68b16023bd165af17
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user