mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
pullup from bind 8:
1674. [bug] getaddrinfo() failed to set sin6_scope_id correctly on some platforms.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user