From 85f90d22b6efe2e3b14708556047cc09e7de7a7c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 25 Nov 2005 16:05:57 +0000 Subject: [BZ #1925] 2005-11-25 Ulrich Drepper [BZ #1925] * nis/ypclnt.c (yp_order): Correct test for invalid parameter. --- ChangeLog | 5 +++++ nis/ypclnt.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2adef78..a9fb192 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-25 Ulrich Drepper + + [BZ #1925] + * nis/ypclnt.c (yp_order): Correct test for invalid parameter. + 2005-11-24 Ulrich Drepper * scripts/check-c++-types.sh: Improve comments. diff --git a/nis/ypclnt.c b/nis/ypclnt.c index 6230cb8..df0e783 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; -- cgit v1.1