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:
parent
13263abd4f
commit
8de3d10e71
3
nlattr.c
3
nlattr.c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user