summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-26 12:33:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-26 12:33:42 +0000
commitfa82530536530d833bfc3062e39e0143dcce3330 (patch)
tree748a0c0b7310ad81d0830d47ebf6ecce73f4881a /usr.sbin
parent44a9edf9441e53ab08e655d948877c7b63586072 (diff)
we are so ftp bounce paranoid, we checked twice!
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/lpd/lpd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c
index 47300e98ab5..973346682a6 100644
--- a/usr.sbin/lpr/lpd/lpd.c
+++ b/usr.sbin/lpr/lpd/lpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpd.c,v 1.9 1996/09/21 21:05:41 deraadt Exp $ */
+/* $OpenBSD: lpd.c,v 1.10 1996/10/26 12:33:41 deraadt Exp $ */
/* $NetBSD: lpd.c,v 1.7 1996/04/24 14:54:06 mrg Exp $ */
/*
@@ -509,11 +509,6 @@ chkhost(f)
extern char *inet_ntoa();
int good = 0;
- f->sin_port = ntohs(f->sin_port);
- if (f->sin_family != AF_INET || f->sin_port >= IPPORT_RESERVED ||
- f->sin_port == 20)
- fatal("Malformed from address");
-
/* Need real hostname for temporary filenames */
hp = gethostbyaddr((char *)&f->sin_addr,
sizeof(struct in_addr), f->sin_family);