From 57c6ecb1852222606af6f5481791247d7f8d9cd8 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 20 Mar 2014 11:10:05 +0100 Subject: gtp: add attribute validation for GTPA_TID Make sure userspace passes a u64. --- gtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtp.c b/gtp.c index cf704c0..fb048b3 100644 --- a/gtp.c +++ b/gtp.c @@ -1264,8 +1264,9 @@ out: } static struct nla_policy gtp_genl_policy[GTPA_MAX + 1] = { - [GTPA_VERSION] = { .type = NLA_U32, }, [GTPA_LINK] = { .type = NLA_U32, }, + [GTPA_VERSION] = { .type = NLA_U32, }, + [GTPA_TID] = { .type = NLA_U64, }, [GTPA_SGSN_ADDRESS] = { .type = NLA_NESTED, }, [GTPA_MS_ADDRESS] = { .type = NLA_NESTED, }, }; -- cgit v1.2.3