nlattr: ignore nla_type flags when selecting nlattre 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
parent 13263abd4f
commit 8de3d10e71

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