netfilter: ebt_nflog: fix unexpected truncated packet
authorLiping Zhang <zlpnobody@gmail.com>
Sun, 18 Jun 2017 02:51:09 +0000 (10:51 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 29 Jun 2017 16:47:02 +0000 (18:47 +0200)
commit91af6ba7ff16bd7e5919aedfe70aad73a3375619
tree43d16e98124710b7b2d62a00da11cddade80eaf2
parentdeaa0a976b829af8a7886d8e2528a675cbe4dac8
netfilter: ebt_nflog: fix unexpected truncated packet

"struct nf_loginfo li;" is a local variable, so we should set the flags
to 0 explicitly, else, packets maybe truncated unexpectedly when copied
to the userspace.

Fixes: 7643507fe8b5 ("netfilter: xt_NFLOG: nflog-range does not truncate packets")
Cc: Vishwanath Pai <vpai@akamai.com>
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/ebt_nflog.c