summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-24 12:48:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-24 12:48:07 +0000
commit1f84de064087bc3f31c630ae887c54e763d3a426 (patch)
tree457f9610b155f64a712698dfcda2c76bfb64724a
parenta11eb1eb7b0965a8293a78473284e143df9e965e (diff)
irc thing is dumb, and do not bother wasting effort screaming about ftp bounce attempts, just slaughter them
-rw-r--r--usr.sbin/inetd/inetd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 549f14e7739..dd605b06c59 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.24 1997/01/15 23:43:59 millert Exp $ */
+/* $OpenBSD: inetd.c,v 1.25 1997/02/24 12:48:06 deraadt 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.24 1997/01/15 23:43:59 millert Exp $";
+static char rcsid[] = "$OpenBSD: inetd.c,v 1.25 1997/02/24 12:48:06 deraadt Exp $";
#endif /* not lint */
/*
@@ -408,8 +408,7 @@ main(argc, argv, envp)
continue;
}
if (ntohs(peer.sin_port) == 20) {
- syslog(LOG_INFO, "Connect to %s from port %d",
- sep->se_service, ntohs(peer.sin_port));
+ /* XXX ftp bounce */
close(ctrl);
continue;
}
@@ -545,8 +544,6 @@ dg_badinput(sin)
{
if (ntohs(sin->sin_port) < IPPORT_RESERVED)
return (1);
- if (ntohs(sin->sin_port) == 6667) /* XXX IRC version */
- return (1);
if (sin->sin_addr.s_addr == htonl(INADDR_BROADCAST))
return (1);
/* XXX compare against broadcast addresses in SIOCGIFCONF list? */