idiag: fix out of bound error parsing idiag messages
Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
a3c0c04eff
commit
fffc7ecedd
1 changed files with 1 additions and 1 deletions
|
@ -603,7 +603,7 @@ int idiagnl_msg_parse(struct nlmsghdr *nlh, struct idiagnl_msg **result)
|
|||
if (!msg)
|
||||
goto errout_nomem;
|
||||
|
||||
err = nlmsg_parse(nlh, sizeof(struct inet_diag_msg), tb, IDIAG_ATTR_MAX,
|
||||
err = nlmsg_parse(nlh, sizeof(struct inet_diag_msg), tb, IDIAG_ATTR_MAX - 1,
|
||||
ext_policy);
|
||||
if (err < 0)
|
||||
goto errout;
|
||||
|
|
Loading…
Add table
Reference in a new issue