]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix regression introduced in r296986.
authorae <ae@FreeBSD.org>
Fri, 8 Apr 2016 11:13:24 +0000 (11:13 +0000)
committerae <ae@FreeBSD.org>
Fri, 8 Apr 2016 11:13:24 +0000 (11:13 +0000)
commit3f81fe2ce06b0be2c179e60d88d8316d47f0c5a2
treeea82fc43e131622e3a3fe43e1272bf3cca5a668e
parent7dbfd5ad027d5eede9963cdaf6b072e4981ef62b
Fix regression introduced in r296986.

Currently we don't keep zoneid in in6_ifaddr structure, because there
is still some code, that doesn't properly initialize sin6_scope_id,
but some functions use sa_equal() for addresses comparison. sa_equal()
compares full sockaddr_in6 structures and such comparison will fail.
For now use zero zoneid in in6ifa_ifwithaddr(). It is safe, because
used address is in embedded form. In future we will use zoneid, so mark it
with XXX comment.

Reported by: kp
Tested by: kp
sys/netinet6/in6_src.c