From cb73ffc8b7709c026871cb29fe96f642bce2fd63 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Mon, 6 Jan 1997 06:27:55 +0000 Subject: [PATCH] Eek: the 'check for / in map names' test I added a while back detects slashes in map names but doesn't return failure if it finds them. Add missing return(1) to fix this. --- usr.sbin/ypserv/yp_access.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ypserv/yp_access.c b/usr.sbin/ypserv/yp_access.c index 69d848ee5c0..0b028efb9ce 100644 --- a/usr.sbin/ypserv/yp_access.c +++ b/usr.sbin/ypserv/yp_access.c @@ -53,7 +53,7 @@ #endif #ifndef lint -static const char rcsid[] = "$Id: yp_access.c,v 1.9 1996/06/05 02:01:29 wpaul Exp $"; +static const char rcsid[] = "$Id: yp_access.c,v 1.11 1996/10/24 18:58:22 wpaul Exp $"; #endif extern int debug; @@ -255,6 +255,7 @@ int yp_access(map, rqstp) possible spoof attempt from %s:%d", map, inet_ntoa(rqhost->sin_addr), ntohs(rqhost->sin_port)); + return(1); } #ifdef DB_CACHE if ((yp_testflag((char *)map, (char *)domain, YP_SECURE) ||