summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-01 01:53:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-01 01:53:09 +0000
commit0dc834aa5d5a9ece1d18c2fa1d4cf8aadbec357f (patch)
tree50a9f0fcdb96066528a31b39e9d7d4e74721b11a /usr.sbin/ypserv
parent9d18e595600b58aacfc31f877b02811a77cbfff4 (diff)
simplify check
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r--usr.sbin/ypserv/ypxfr/ypxfr.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/ypserv/ypxfr/ypxfr.c b/usr.sbin/ypserv/ypxfr/ypxfr.c
index 964a1a3989a..33a83373ff8 100644
--- a/usr.sbin/ypserv/ypxfr/ypxfr.c
+++ b/usr.sbin/ypserv/ypxfr/ypxfr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypxfr.c,v 1.8 1996/09/30 20:50:25 maja Exp $ */
+/* $OpenBSD: ypxfr.c,v 1.9 1996/10/01 01:53:08 deraadt Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypxfr.c,v 1.8 1996/09/30 20:50:25 maja Exp $";
+static char rcsid[] = "$OpenBSD: ypxfr.c,v 1.9 1996/10/01 01:53:08 deraadt Exp $";
#endif
#include <stdio.h>
@@ -554,10 +554,8 @@ char *argv[];
yplog("Check for reserved port on host: %s", host);
srvport = getrpcport(host,YPPROG,YPVERS,IPPROTO_TCP);
- if (srvport >= IPPORT_RESERVED ||
- srvport < IPPORT_RESERVED/2) {
+ if (srvport >= IPPORT_RESERVED)
status = YPPUSH_REFUSED;
- }
}