summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2000-06-19 01:28:45 +0000
committeritojun <itojun@openbsd.org>2000-06-19 01:28:45 +0000
commit7f41cef86071f210617d9cd307cf3ec8b24f0543 (patch)
tree9de0ddf50058d5a8b096bb8f225f7302264b7790
parentSmall, usable, and it even boots on 4Mb machines (diff)
downloadwireguard-openbsd-7f41cef86071f210617d9cd307cf3ec8b24f0543.tar.xz
wireguard-openbsd-7f41cef86071f210617d9cd307cf3ec8b24f0543.zip
honor scopeid when compare ipv6 addrs
-rw-r--r--usr.sbin/inetd/inetd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 0f6acabfa2f..62353ff9c85 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.61 2000/03/04 01:10:06 deraadt Exp $ */
+/* $OpenBSD: inetd.c,v 1.62 2000/06/19 01:28:45 itojun Exp $ */
/* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
@@ -41,7 +41,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)inetd.c 5.30 (Berkeley) 6/3/91";*/
-static char rcsid[] = "$OpenBSD: inetd.c,v 1.61 2000/03/04 01:10:06 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: inetd.c,v 1.62 2000/06/19 01:28:45 itojun Exp $";
#endif /* not lint */
/*
@@ -1117,6 +1117,10 @@ matchconf (old, new)
&new->se_ctrladdr_in6.sin6_addr,
sizeof(new->se_ctrladdr_in6.sin6_addr)) != 0)
return (0);
+ if (old->se_family == AF_INET6 && new->se_family == AF_INET6 &&
+ old->se_ctrladdr_in6.sin6_scope_id !=
+ new->se_ctrladdr_in6.sin6_scope_id)
+ return (0);
return (1);
}