summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.ypxfrd
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1997-04-28 14:22:31 +0000
committerwpaul <wpaul@FreeBSD.org>1997-04-28 14:22:31 +0000
commit7a79f7c5cf90ad1cd09da19c81cfc1439cdbe15e (patch)
tree3dfc56cb6e6025c4b6240e2d42212e6c23dcb684 /usr.sbin/rpc.ypxfrd
parentc7507c14094b0ec9cdc768aeebf83f5411f4389e (diff)
downloadFreeBSD-src-7a79f7c5cf90ad1cd09da19c81cfc1439cdbe15e.zip
FreeBSD-src-7a79f7c5cf90ad1cd09da19c81cfc1439cdbe15e.tar.gz
Back out unnecessary overly-paranoid paranoia test from here too; yp_access()
does the right thing already.
Diffstat (limited to 'usr.sbin/rpc.ypxfrd')
-rw-r--r--usr.sbin/rpc.ypxfrd/ypxfrd_server.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/usr.sbin/rpc.ypxfrd/ypxfrd_server.c b/usr.sbin/rpc.ypxfrd/ypxfrd_server.c
index bfac1b1..fd98615 100644
--- a/usr.sbin/rpc.ypxfrd/ypxfrd_server.c
+++ b/usr.sbin/rpc.ypxfrd/ypxfrd_server.c
@@ -29,12 +29,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ypxfrd_server.c,v 1.4 1997/02/22 16:13:03 peter Exp $
+ * $Id: ypxfrd_server.c,v 1.5 1997/04/10 13:48:59 wpaul Exp $
*/
#include "ypxfrd.h"
#ifndef lint
-static const char rcsid[] = "$Id: ypxfrd_server.c,v 1.4 1997/02/22 16:13:03 peter Exp $";
+static const char rcsid[] = "$Id: ypxfrd_server.c,v 1.5 1997/04/10 13:48:59 wpaul Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -89,20 +89,10 @@ ypxfrd_getmap_1_svc(ypxfr_mapname *argp, struct svc_req *rqstp)
{
static struct xfr result;
char buf[MAXPATHLEN];
- struct sockaddr_in *rqhost;
result.ok = FALSE;
result.xfr_u.xfrstat = XFR_DENIED;
- rqhost = svc_getcaller(rqstp->rq_xprt);
-
- if (ntohs(rqhost->sin_port) >= IPPORT_RESERVED) {
- yp_error("%s:%d didn't use reserved port -- rejecting",
- inet_ntoa(rqhost->sin_addr),
- ntohs(rqhost->sin_port));
- return(&result);
- }
-
if (yp_validdomain(argp->xfrdomain)) {
return(&result);
}
OpenPOWER on IntegriCloud