From 201e01dbacc27d94ec1cf0f81016b1236b1c0a98 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Tue, 28 Aug 2018 03:07:59 +0200 Subject: [PATCH] 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. --- nlattr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.50.1