diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-03-04 00:28:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-03-04 00:28:04 +0000 |
commit | 0f749099e991ef47514bd635225a89a9c0250b80 (patch) | |
tree | 2a4549c6ec26d08e23e418eafc93059a4ffe0ab5 | |
parent | 3868fb6efc52d60a6ab49b08fd6d1c7216237820 (diff) | |
download | glibc-0f749099e991ef47514bd635225a89a9c0250b80.zip glibc-0f749099e991ef47514bd635225a89a9c0250b80.tar.gz glibc-0f749099e991ef47514bd635225a89a9c0250b80.tar.bz2 |
[BZ #5854]
* nis/ypclnt.c (yp_order): Fix handling of return value of
do_ypcall_tr call.
Patch by Jeff Moyer <jmoyer@redhat.com>.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | nis/ypclnt.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2008-03-03 Ulrich Drepper <drepper@redhat.com> + [BZ #5854] + * nis/ypclnt.c (yp_order): Fix handling of return value of + do_ypcall_tr call. + Patch by Jeff Moyer <jmoyer@redhat.com>. + * po/fr.po: Update from translation team. 2008-02-22 Andreas Jaeger <aj@suse.de>, diff --git a/nis/ypclnt.c b/nis/ypclnt.c index ae04ee9..7d0091b 100644 --- a/nis/ypclnt.c +++ b/nis/ypclnt.c @@ -634,7 +634,7 @@ yp_order (const char *indomain, const char *inmap, unsigned int *outorder) (caddr_t) &req, (xdrproc_t) xdr_ypresp_order, (caddr_t) &resp); - if (result == YPERR_SUCCESS) + if (result != YPERR_SUCCESS) return result; *outorder = resp.ordernum; |