diff options
author | Simon Horman <horms@verge.net.au> | 2008-09-17 10:10:42 +1000 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-09-17 10:10:42 +1000 |
commit | dff630ddad3884b99fae3ad92f5eccbf26618679 (patch) | |
tree | d5c324c78b40101273c824f7d9510503421e87e7 /net/ipv4 | |
parent | 9e691ed68d94ab3047e028736641445b4cf74d67 (diff) | |
download | kernel_samsung_smdk4412-dff630ddad3884b99fae3ad92f5eccbf26618679.zip kernel_samsung_smdk4412-dff630ddad3884b99fae3ad92f5eccbf26618679.tar.gz kernel_samsung_smdk4412-dff630ddad3884b99fae3ad92f5eccbf26618679.tar.bz2 |
ipvs: supply a valid 0 address to ip_vs_conn_new()
ip_vs_conn_new expects a union nf_inet_addr as the type for its address
parameters, not a plain integer.
This problem was detected by sparse.
make C=1
CHECK net/ipv4/ipvs/ip_vs_core.c
net/ipv4/ipvs/ip_vs_core.c:469:9: warning: Using plain integer as NULL pointer
Acked-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ipvs/ip_vs_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ipvs/ip_vs_core.c b/net/ipv4/ipvs/ip_vs_core.c index 80a4fcf..ece748d 100644 --- a/net/ipv4/ipvs/ip_vs_core.c +++ b/net/ipv4/ipvs/ip_vs_core.c @@ -457,6 +457,7 @@ int ip_vs_leave(struct ip_vs_service *svc, struct sk_buff *skb, if (sysctl_ip_vs_cache_bypass && svc->fwmark && unicast) { int ret, cs; struct ip_vs_conn *cp; + union nf_inet_addr daddr = { .all = { 0, 0, 0, 0 } }; ip_vs_service_put(svc); @@ -465,7 +466,7 @@ int ip_vs_leave(struct ip_vs_service *svc, struct sk_buff *skb, cp = ip_vs_conn_new(svc->af, iph.protocol, &iph.saddr, pptr[0], &iph.daddr, pptr[1], - 0, 0, + &daddr, 0, IP_VS_CONN_F_BYPASS, NULL); if (cp == NULL) |