summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-20 15:51:53 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-20 15:51:53 +0000
commita65ce0b0b6aaa1551c45b5489d298ce19abd331d (patch)
tree00ac94d620a123900f4af07f0daffd5e13f1fc8c /libexec
parent1da395d530964e0da740d7f4b64e711013011d76 (diff)
perform setsockopt(IP_TOS) only when IPv4 connection comes.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/telnetd/telnetd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c
index 9210a21480a..8214cc3e19a 100644
--- a/libexec/telnetd/telnetd.c
+++ b/libexec/telnetd/telnetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: telnetd.c,v 1.20 1999/12/11 01:59:43 itojun Exp $ */
+/* $OpenBSD: telnetd.c,v 1.21 1999/12/20 15:51:52 itojun Exp $ */
/* $NetBSD: telnetd.c,v 1.6 1996/03/20 04:25:57 tls Exp $ */
/*
@@ -45,7 +45,7 @@ static char copyright[] =
static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95";
static char rcsid[] = "$NetBSD: telnetd.c,v 1.5 1996/02/28 20:38:23 thorpej Exp $";
#else
-static char rcsid[] = "$OpenBSD: telnetd.c,v 1.20 1999/12/11 01:59:43 itojun Exp $";
+static char rcsid[] = "$OpenBSD: telnetd.c,v 1.21 1999/12/20 15:51:52 itojun Exp $";
#endif
#endif /* not lint */
@@ -513,7 +513,7 @@ main(argc, argv)
}
#if defined(IPPROTO_IP) && defined(IP_TOS)
- {
+ if (from.ss_family == AF_INET) {
# if defined(HAS_GETTOS)
struct tosent *tp;
if (tos < 0 && (tp = gettosbyname("telnet", "tcp")))