nlattr: ignore nla_type flags when selecting nlattr decoder

* nlattr.c (decode_nlattr_with_data): Apply NLA_TYPE_MASK to nla_type
before decoder selection.
This commit is contained in:
Eugene Syromyatnikov 2018-08-28 03:07:59 +02:00 committed by Dmitry V. Levin
parent ac2f6695cd
commit 201e01dbac

View File

@ -101,7 +101,8 @@ decode_nlattr_with_data(struct tcb *const tcp,
print_nlattr(nla, table, dflt);
if (nla_len > NLA_HDRLEN) {
const unsigned int idx = size ? nla->nla_type : 0;
const unsigned int idx =
size ? nla->nla_type & NLA_TYPE_MASK : 0;
tprints(", ");
if (!decoders