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-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0400c4f5a08cfd1c657f7f616fcf1dfbd76a4d7;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [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 72975fa8795d..8be2f840a557 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