ipvs: fix AF assignment in ip_vs_conn_new()
authorMichal Kubecek <mkubecek@suse.cz>
Thu, 30 Jan 2014 07:50:20 +0000 (08:50 +0100)
committerSimon Horman <horms@verge.net.au>
Tue, 4 Feb 2014 12:13:47 +0000 (21:13 +0900)
commit2a971354e74f3837d14b9c8d7f7983b0c9c330e4
treefaf9c92d7d340b80fdd4ddb1ada5973368514404
parentd922e1cb1ea17ac7f0a5c3c2be98d4bd80d055b8
ipvs: fix AF assignment in ip_vs_conn_new()

If a fwmark is passed to ip_vs_conn_new(), it is passed in
vaddr, not daddr. Therefore we should set AF to AF_UNSPEC in
vaddr assignment (like we do in ip_vs_ct_in_get()), otherwise we
may copy only first 4 bytes of an IPv6 address into cp->daddr.

Signed-off-by: Bogdano Arendartchuk <barendartchuk@suse.com>
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_conn.c