svn commit: r253753 - head/sys/net

Hiroki Sato hrs at FreeBSD.org
Sun Jul 28 20:02:41 UTC 2013


Author: hrs
Date: Sun Jul 28 20:02:41 2013
New Revision: 253753
URL: http://svnweb.freebsd.org/changeset/base/253753

Log:
  sin6 should be assigned before the loop.

Modified:
  head/sys/net/rtsock.c

Modified: head/sys/net/rtsock.c
==============================================================================
--- head/sys/net/rtsock.c	Sun Jul 28 19:56:08 2013	(r253752)
+++ head/sys/net/rtsock.c	Sun Jul 28 20:02:41 2013	(r253753)
@@ -968,8 +968,8 @@ flush:
 #ifdef INET6
 		if (rti_need_deembed) {
 			/* sin6_scope_id is recovered before sending rtm. */
+			sin6 = (struct sockaddr_in6 *)&ss;
 			for (i = 0; i < RTAX_MAX; i++) {
-				sin6 = (struct sockaddr_in6 *)&ss;
 				if (info.rti_info[i] == NULL)
 					continue;
 				if (info.rti_info[i]->sa_family != AF_INET6)


More information about the svn-src-all mailing list