Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Sep 2017 16:28:20 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r323649 - projects/bsd_rdma_4_9/sys/ofed/drivers/infiniband/core
Message-ID:  <201709161628.v8GGSKFt047401@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Sat Sep 16 16:28:19 2017
New Revision: 323649
URL: https://svnweb.freebsd.org/changeset/base/323649

Log:
  Set length field of socket address.
  
  Sponsored by:	Mellanox Technologies

Modified:
  projects/bsd_rdma_4_9/sys/ofed/drivers/infiniband/core/ib_cma.c

Modified: projects/bsd_rdma_4_9/sys/ofed/drivers/infiniband/core/ib_cma.c
==============================================================================
--- projects/bsd_rdma_4_9/sys/ofed/drivers/infiniband/core/ib_cma.c	Sat Sep 16 16:27:24 2017	(r323648)
+++ projects/bsd_rdma_4_9/sys/ofed/drivers/infiniband/core/ib_cma.c	Sat Sep 16 16:28:19 2017	(r323649)
@@ -1118,6 +1118,7 @@ static void cma_save_ip6_info(struct sockaddr_in6 *src
 {
 	if (src_addr) {
 		*src_addr = (struct sockaddr_in6) {
+			.sin6_len = sizeof(struct sockaddr_in6),
 			.sin6_family = AF_INET6,
 			.sin6_addr = hdr->dst_addr.ip6,
 			.sin6_port = local_port,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709161628.v8GGSKFt047401>