mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 22:00:00 -04:00
pullup from bind 8:
1674. [bug] getaddrinfo() failed to set sin6_scope_id correctly
on some platforms.
This commit is contained in:
parent
2538b3b9c0
commit
8418c435e6
1 changed files with 1 additions and 0 deletions
|
|
@ -1100,6 +1100,7 @@ ip6_str2scopeid(char *scope, struct sockaddr_in6 *sin6,
|
|||
*/
|
||||
scopeid = if_nametoindex(scope);
|
||||
if (scopeid == 0)
|
||||
goto trynumeric;
|
||||
*scopeidp = scopeid;
|
||||
return (1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue