summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1997-01-06 06:27:55 +0000
committerwpaul <wpaul@FreeBSD.org>1997-01-06 06:27:55 +0000
commit3b0e03bad37be8a13801e3b736e271e85c99da5b (patch)
tree2b85fbfe18f42e44f5b4e2abd5a1c7a43a5a73e2 /usr.sbin/ypserv
parentb3c9efcc990bb68bad4dd9b3d16a6f0a5c2a348e (diff)
downloadFreeBSD-src-3b0e03bad37be8a13801e3b736e271e85c99da5b.zip
FreeBSD-src-3b0e03bad37be8a13801e3b736e271e85c99da5b.tar.gz
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.
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r--usr.sbin/ypserv/yp_access.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_access.c b/usr.sbin/ypserv/yp_access.c
index 69d848e..0b028ef 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) ||
OpenPOWER on IntegriCloud