diff options
author | hrs <hrs@FreeBSD.org> | 2013-07-28 20:02:41 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2013-07-28 20:02:41 +0000 |
commit | b1001912a2756a17171a261b302e2cbb2cc35105 (patch) | |
tree | 2519792e3cefc7c717693b1d6b64e40992e88035 /sys/net | |
parent | 5ee60ee6123584d26a9f56c43a68cb069b3b1cd5 (diff) | |
download | FreeBSD-src-b1001912a2756a17171a261b302e2cbb2cc35105.zip FreeBSD-src-b1001912a2756a17171a261b302e2cbb2cc35105.tar.gz |
sin6 should be assigned before the loop.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/rtsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 928d2ab..479977c 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -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) |