mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +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);
|
scopeid = if_nametoindex(scope);
|
||||||
if (scopeid == 0)
|
if (scopeid == 0)
|
||||||
|
goto trynumeric;
|
||||||
*scopeidp = scopeid;
|
*scopeidp = scopeid;
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user