From: Ulrich Drepper Date: Tue, 4 Mar 2008 00:28:04 +0000 (+0000) Subject: [BZ #5854] X-Git-Tag: cvs/fedora-glibc-20080305T0857~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f749099e991ef47514bd635225a89a9c0250b80;p=thirdparty%2Fglibc.git [BZ #5854] * nis/ypclnt.c (yp_order): Fix handling of return value of do_ypcall_tr call. Patch by Jeff Moyer . --- diff --git a/ChangeLog b/ChangeLog index 859b7de78fb..5ac33e994ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-03-03 Ulrich Drepper + [BZ #5854] + * nis/ypclnt.c (yp_order): Fix handling of return value of + do_ypcall_tr call. + Patch by Jeff Moyer . + * po/fr.po: Update from translation team. 2008-02-22 Andreas Jaeger , diff --git a/nis/ypclnt.c b/nis/ypclnt.c index ae04ee92122..7d0091bd261 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;