svn commit: r252945 - stable/9/lib/libc/net

Michael Tuexen tuexen at FreeBSD.org
Sun Jul 7 13:09:18 UTC 2013


Author: tuexen
Date: Sun Jul  7 13:09:17 2013
New Revision: 252945
URL: http://svnweb.freebsd.org/changeset/base/252945

Log:
  MFC r243300:
  Fix the handling of mapped IPv6 addresses in sctp_connectx().

Modified:
  stable/9/lib/libc/net/sctp_sys_calls.c
Directory Properties:
  stable/9/lib/   (props changed)
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/net/sctp_sys_calls.c
==============================================================================
--- stable/9/lib/libc/net/sctp_sys_calls.c	Sun Jul  7 13:07:42 2013	(r252944)
+++ stable/9/lib/libc/net/sctp_sys_calls.c	Sun Jul  7 13:09:17 2013	(r252945)
@@ -202,7 +202,6 @@ sctp_connectx(int sd, const struct socka
 				return (-1);
 			}
 			if (IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)at)->sin6_addr)) {
-				len += sizeof(struct sockaddr_in);
 				in6_sin6_2_sin((struct sockaddr_in *)cpto, (struct sockaddr_in6 *)at);
 				cpto = ((caddr_t)cpto + sizeof(struct sockaddr_in));
 				len += sizeof(struct sockaddr_in);


More information about the svn-src-stable-9 mailing list