From 0e0763e0066a5eb886468f2334b7af6c37453836 Mon Sep 17 00:00:00 2001 From: Stanislav Kirillov Date: Thu, 10 Oct 2019 11:16:29 +0000 Subject: [PATCH] fix ipv6 btl connection bug Signed-off-by: Stanislav Kirillov --- opal/mca/btl/tcp/btl_tcp_proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opal/mca/btl/tcp/btl_tcp_proc.c b/opal/mca/btl/tcp/btl_tcp_proc.c index 3ed3cb5cad..0b38124789 100644 --- a/opal/mca/btl/tcp/btl_tcp_proc.c +++ b/opal/mca/btl/tcp/btl_tcp_proc.c @@ -986,8 +986,8 @@ bool mca_btl_tcp_proc_tosocks(mca_btl_tcp_addr_t* proc_addr, { struct sockaddr_in6* inaddr = (struct sockaddr_in6*)output; output->ss_family = AF_INET6; - memcpy(&inaddr->sin6_addr, &proc_addr->addr_union.addr_inet, - sizeof (proc_addr->addr_union.addr_inet)); + memcpy(&inaddr->sin6_addr, &proc_addr->addr_union.addr_inet6, + sizeof (proc_addr->addr_union.addr_inet6)); inaddr->sin6_port = proc_addr->addr_port; inaddr->sin6_scope_id = 0; inaddr->sin6_flowinfo = 0;