netfilter: nf_conntrack_sip: fix wrong memory initialisation
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 1 Mar 2017 14:33:26 +0000 (15:33 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:57:10 +0000 (02:57 +0000)
commit79eb44d36e925c8ee65f4afaee4de8c6c5c12fa4
tree695cfaf3982ee88884e723ee0d5118a2ab1e0739
parent89439a2170e1805e4691226a43dacbf372b82507
netfilter: nf_conntrack_sip: fix wrong memory initialisation

commit da2f27e9e615d1c799c9582b15262458da61fddc upstream.

In commit 82de0be6862cd ("netfilter: Add helper array
register/unregister functions"),
struct nf_conntrack_helper sip[MAX_PORTS][4] was changed to
sip[MAX_PORTS * 4], so the memory init should have been changed to
memset(&sip[4 * i], 0, 4 * sizeof(sip[i]));

But as the sip[] table is allocated in the BSS, it is already set to 0

Fixes: 82de0be6862cd ("netfilter: Add helper array register/unregister functions")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_conntrack_sip.c