diff options
author | Thomas Haller <thaller@redhat.com> | 2014-11-24 16:14:46 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-11-24 17:30:21 (GMT) |
commit | fffc7ecedd4bd5cacd6ba096e4619b84dd4f5991 (patch) | |
tree | 1fa3d211e333b1ab94e005f2dc075575831aa47f | |
parent | a3c0c04eff814ad6b6a4b17cad4d6a17361ad617 (diff) | |
download | libnl-fffc7ecedd4bd5cacd6ba096e4619b84dd4f5991.zip libnl-fffc7ecedd4bd5cacd6ba096e4619b84dd4f5991.tar.gz libnl-fffc7ecedd4bd5cacd6ba096e4619b84dd4f5991.tar.bz2 |
idiag: fix out of bound error parsing idiag messages
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | lib/idiag/idiag_msg_obj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/idiag/idiag_msg_obj.c b/lib/idiag/idiag_msg_obj.c index f1b5e28..b6f55c8 100644 --- a/lib/idiag/idiag_msg_obj.c +++ b/lib/idiag/idiag_msg_obj.c @@ -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; |