提交 cd9fe6c4 编写于 作者: S Sven Wegener 提交者: 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: NSven Wegener <sven.wegener@stealer.net>
Acked-by: NJulius Volz <juliusv@google.com>
Signed-off-by: NSimon Horman <horms@verge.net.au>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册