]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: synproxy: ensure zero is returned on non-error return path
authorColin Ian King <colin.king@canonical.com>
Tue, 18 Jun 2019 14:22:44 +0000 (15:22 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Jun 2019 15:48:34 +0000 (17:48 +0200)
commit72c5e11854afb842e157353be0291d65b91725f5
tree3e10056c5de53b36985aa3bfd8f0575219cb2ada
parentd7f9b2f18eaef74b4f948c7e24e3a8f796f0c90d
netfilter: synproxy: ensure zero is returned on non-error return path

Currently functions nf_synproxy_{ipc4|ipv6}_init return an uninitialized
garbage value in variable ret on a successful return.  Fix this by
returning zero on success.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: d7f9b2f18eae ("netfilter: synproxy: extract SYNPROXY infrastructure from {ipt, ip6t}_SYNPROXY")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_synproxy_core.c