summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/yp/yplib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/yp/yplib.c b/lib/libc/yp/yplib.c
index 7c565abe56e8e..28c748dda3523 100644
--- a/lib/libc/yp/yplib.c
+++ b/lib/libc/yp/yplib.c
@@ -28,7 +28,7 @@
*/
#ifndef LINT
-static char *rcsid = "$Id: yplib.c,v 1.24.2.1 1996/11/08 23:21:17 joerg Exp $";
+static char *rcsid = "$Id: yplib.c,v 1.24.2.2 1996/12/21 18:17:42 wpaul Exp $";
#endif
#include <sys/param.h>
@@ -226,6 +226,10 @@ _yp_dobind(dom, ypdb)
struct sockaddr_in check;
int checklen = sizeof(struct sockaddr_in);
+ /* Not allowed; bad doggie. Bad. */
+ if (strchr(dom, '/') != NULL)
+ return(YPERR_BADARGS);
+
gpid = getpid();
if( !(pid==-1 || pid==gpid) ) {
ysd = _ypbindlist;