From: Pablo Neira Ayuso Date: Mon, 14 Nov 2005 23:21:41 +0000 (-0800) Subject: [NETFILTER] nfnetlink: skip size check if size not specified (== 0) X-Git-Tag: v2.6.15-rc2~105 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0400c4f5a08cfd1c657f7f616fcf1dfbd76a4d7;p=linux-2.6 [NETFILTER] nfnetlink: skip size check if size not specified (== 0) Skip sizecheck if the size of the attribute wasn't specified, ie. zero. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Harald Welte Signed-off-by: David S. Miller --- diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h index 72975fa879..8be2f840a5 100644 --- a/include/linux/netfilter/nfnetlink.h +++ b/include/linux/netfilter/nfnetlink.h @@ -154,11 +154,14 @@ extern void nfattr_parse(struct nfattr *tb[], int maxattr, #define nfattr_bad_size(tb, max, cta_min) \ ({ int __i, __res = 0; \ - for (__i=0; __i