Commit cd9fe6c4 authored by Sven Wegener's avatar Sven Wegener Committed by Simon Horman

ipvs: Use pointer to address from sync message

We want a pointer to it, not the value casted to a pointer.
Signed-off-by: default avatarSven Wegener <sven.wegener@stealer.net>
Acked-by: default avatarJulius Volz <juliusv@google.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent f2428ed5
...@@ -397,11 +397,11 @@ static void ip_vs_process_message(const char *buffer, const size_t buflen) ...@@ -397,11 +397,11 @@ static void ip_vs_process_message(const char *buffer, const size_t buflen)
flags &= ~IP_VS_CONN_F_INACTIVE; flags &= ~IP_VS_CONN_F_INACTIVE;
} }
cp = ip_vs_conn_new(AF_INET, s->protocol, cp = ip_vs_conn_new(AF_INET, s->protocol,
(union nf_inet_addr *)s->caddr, (union nf_inet_addr *)&s->caddr,
s->cport, s->cport,
(union nf_inet_addr *)s->vaddr, (union nf_inet_addr *)&s->vaddr,
s->vport, s->vport,
(union nf_inet_addr *)s->daddr, (union nf_inet_addr *)&s->daddr,
s->dport, s->dport,
flags, dest); flags, dest);
if (dest) if (dest)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment