From: Eugene Syromyatnikov Date: Tue, 28 Aug 2018 01:07:59 +0000 (+0200) Subject: nlattr: ignore nla_type flags when selecting nlattr decoder X-Git-Tag: v4.25~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=201e01dbacc27d94ec1cf0f81016b1236b1c0a98;p=strace 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. --- diff --git a/nlattr.c b/nlattr.c index e7ea5330..315d6994 100644 --- a/nlattr.c +++ b/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