sin6 should be assigned before the loop.
This commit is contained in:
parent
7651b989e8
commit
12bdf23a3a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253753
@ -968,8 +968,8 @@ route_output(struct mbuf *m, struct socket *so)
|
||||
#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)
|
||||
|
Loading…
Reference in New Issue
Block a user