ipvs: Use pointer to address from sync message
authorSven Wegener <sven.wegener@stealer.net>
Fri, 5 Sep 2008 11:46:00 +0000 (13:46 +0200)
committerSimon Horman <horms@verge.net.au>
Sun, 7 Sep 2008 23:34:43 +0000 (09:34 +1000)
We want a pointer to it, not the value casted to a pointer.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/ipv4/ipvs/ip_vs_sync.c

index 40647edf1024d33bc15763bfac9751e6cd8ec0a4..28237a5f62e20ac6aeb79656616e3003b34970ca 100644 (file)
@@ -397,11 +397,11 @@ static void ip_vs_process_message(const char *buffer, const size_t buflen)
                                        flags &= ~IP_VS_CONN_F_INACTIVE;
                        }
                        cp = ip_vs_conn_new(AF_INET, s->protocol,
-                                           (union nf_inet_addr *)s->caddr,
+                                           (union nf_inet_addr *)&s->caddr,
                                            s->cport,
-                                           (union nf_inet_addr *)s->vaddr,
+                                           (union nf_inet_addr *)&s->vaddr,
                                            s->vport,
-                                           (union nf_inet_addr *)s->daddr,
+                                           (union nf_inet_addr *)&s->daddr,
                                            s->dport,
                                            flags, dest);
                        if (dest)