about summary refs log tree commit diff
path: root/nis
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-11-25 16:05:57 +0000
committerUlrich Drepper <drepper@redhat.com>2005-11-25 16:05:57 +0000
commit85f90d22b6efe2e3b14708556047cc09e7de7a7c (patch)
treefc0a4b89bc75166f830f3c3ec69b82fa288cb952 /nis
parent9b33781cad14b416d145726c1417be7c79069fdb (diff)
downloadglibc-85f90d22b6efe2e3b14708556047cc09e7de7a7c.tar.gz
glibc-85f90d22b6efe2e3b14708556047cc09e7de7a7c.tar.xz
glibc-85f90d22b6efe2e3b14708556047cc09e7de7a7c.zip
[BZ #1925]
2005-11-25  Ulrich Drepper  <drepper@redhat.com>
	[BZ #1925]
	* nis/ypclnt.c (yp_order): Correct test for invalid parameter.
Diffstat (limited to 'nis')
-rw-r--r--nis/ypclnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nis/ypclnt.c b/nis/ypclnt.c
index 6230cb84dc..df0e7830cb 100644
--- a/nis/ypclnt.c
+++ b/nis/ypclnt.c
@@ -593,7 +593,7 @@ yp_order (const char *indomain, const char *inmap, unsigned int *outorder)
   enum clnt_stat result;
 
   if (indomain == NULL || indomain[0] == '\0' ||
-      inmap == NULL || inmap == '\0')
+      inmap == NULL || inmap[0] == '\0')
     return YPERR_BADARGS;
 
   req.domain = (char *) indomain;