summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1997-04-28 14:18:38 +0000
committerwpaul <wpaul@FreeBSD.org>1997-04-28 14:18:38 +0000
commitc7507c14094b0ec9cdc768aeebf83f5411f4389e (patch)
tree850b7bbec298f06853fa84f2a909c2896d2962e3 /usr.sbin/ypserv
parentc63d12aeb30917ad4939f3b2ba075a6c0b9d6567 (diff)
downloadFreeBSD-src-c7507c14094b0ec9cdc768aeebf83f5411f4389e.zip
FreeBSD-src-c7507c14094b0ec9cdc768aeebf83f5411f4389e.tar.gz
Back out one of my paranoia tests from the last commit here; yp_access()
already deals with it appropriately. (You know you've been working too hard when you forget how your own code works.)
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r--usr.sbin/ypserv/yp_server.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c
index ce86a15..3406ca0 100644
--- a/usr.sbin/ypserv/yp_server.c
+++ b/usr.sbin/ypserv/yp_server.c
@@ -45,7 +45,7 @@
#include <rpc/rpc.h>
#ifndef lint
-static const char rcsid[] = "$Id: yp_server.c,v 1.5 1997/03/15 06:06:06 wpaul Exp wpaul $";
+static const char rcsid[] = "$Id: yp_server.c,v 1.21 1997/04/10 14:12:51 wpaul Exp $";
#endif /* not lint */
int forked = 0;
@@ -311,22 +311,6 @@ ypproc_xfr_2_svc(ypreq_xfr *argp, struct svc_req *rqstp)
result.transid = argp->transid;
rqhost = svc_getcaller(rqstp->rq_xprt);
- /*
- * The FreeBSD ypxfr(8) program will not talk to a ypserv(8)
- * or rpc.ypxfrd(8) unless it's using a reserved port, but we
- * may as well check that the process calling this procedure
- * is also using one.
- *
- * yp_access() may also do a reserved port test, but only
- * if the YP_SECURE flag is set in the map. For this procedure,
- * the check should be unconditional.
- */
- if (ntohs(rqhost->sin_port) >= IPPORT_RESERVED) {
- yp_error("ypxfr request from non-reserved port (%s:%d) -- \
-rejecting", inet_ntoa(rqhost->sin_addr), ntohs(rqhost->sin_port));
- YPXFR_RETURN(YPXFR_REFUSED)
- }
-
#ifdef DB_CACHE
if (yp_access(argp->map_parms.map,
argp->map_parms.domain, (struct svc_req *)rqstp)) {
OpenPOWER on IntegriCloud