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.
This commit is contained in:
Bill Paul 1997-01-06 06:27:55 +00:00
parent 6951277803
commit cb73ffc8b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21366

View File

@ -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) ||