mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
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:
parent
6951277803
commit
cb73ffc8b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21366
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user