summaryrefslogtreecommitdiff
path: root/net/netfilter/ipset/ip_set_hash_ipport.c
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-05-01 16:47:32 (GMT)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-09-30 19:33:25 (GMT)
commit20b2fab483094d51c8d26784b81e12149474e0f2 (patch)
treec989c640ef275bc347cc8245e07d7df0fb7ad6dd /net/netfilter/ipset/ip_set_hash_ipport.c
parent35b8dcf8c3a0be1feb1c8b29b22e1685ba0c2e14 (diff)
downloadlinux-fsl-qoriq-20b2fab483094d51c8d26784b81e12149474e0f2.tar.xz
netfilter: ipset: Fix "may be used uninitialized" warnings
Reported-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'net/netfilter/ipset/ip_set_hash_ipport.c')
-rw-r--r--net/netfilter/ipset/ip_set_hash_ipport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipset/ip_set_hash_ipport.c b/net/netfilter/ipset/ip_set_hash_ipport.c
index b514ff4..64caad3 100644
--- a/net/netfilter/ipset/ip_set_hash_ipport.c
+++ b/net/netfilter/ipset/ip_set_hash_ipport.c
@@ -137,7 +137,7 @@ hash_ipport4_uadt(struct ip_set *set, struct nlattr *tb[],
ipset_adtfn adtfn = set->variant->adt[adt];
struct hash_ipport4_elem e = { };
struct ip_set_ext ext = IP_SET_INIT_UEXT(h);
- u32 ip, ip_to, p = 0, port, port_to;
+ u32 ip, ip_to = 0, p = 0, port, port_to;
bool with_ports = false;
int ret;