2
0
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:
Mark Andrews
2004-08-09 07:49:21 +00:00
parent 2538b3b9c0
commit 8418c435e6

View File

@@ -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);
}