831: validate sin6_scope_id correctly

Jun-ichiro itojun Hagino itojun at iijlab.net
Fri May 31 08:41:25 UTC 2002


Index: resolv/res_send.c
===================================================================
RCS file: /cvsroot/apps/bind8/src/lib/resolv/res_send.c,v
retrieving revision 1.1.1.8
retrieving revision 1.17
diff -u -r1.1.1.8 -r1.17
--- resolv/res_send.c	2002/05/30 15:30:35	1.1.1.8
+++ resolv/res_send.c	2002/05/30 16:07:51	1.17
@@ -171,6 +171,9 @@
 			srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns);
 			if (srv6->sin6_family == in6p->sin6_family &&
 			    srv6->sin6_port == in6p->sin6_port &&
+#ifdef HAVE_SIN6_SCOPE_ID
+			    srv6->sin6_scope_id == in6p->sin6_scope_id &&
+#endif
 			    (IN6_IS_ADDR_UNSPECIFIED(&srv6->sin6_addr) ||
 			     IN6_ARE_ADDR_EQUAL(&srv6->sin6_addr, &in6p->sin6_addr)))
 				return (1);


More information about the bind-workers mailing list