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)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to