]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nf_nat: fix memset error
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 28 Nov 2007 08:56:27 +0000 (09:56 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Dec 2007 17:51:02 +0000 (09:51 -0800)
commit1aa640f72f0275f30cba9ed8456e07824dd730ad
treebd15eb546c278b748f2f6c7154798c520d880995
parent79aa197996fd187b0935e6c3369e8f73edf2cd9f
nf_nat: fix memset error

This patch fixes an incorrect memset in the NAT code, causing
misbehaviour when unloading and reloading the NAT module.
Applies to stable-2.6.22 and stable-2.6.23.

Please apply, thanks.
[NETFILTER]: nf_nat: fix memset error

Upstream commit e0bf9cf15fc30d300b7fbd821c6bc975531fab44

The size passing to memset is the size of a pointer. Fixes
misbehaviour when unloading and reloading the NAT module.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/netfilter/nf_nat_core.c