* nis/ypclnt.c (yp_order): Fix handling of return value of
	do_ypcall_tr call.
	Patch by Jeff Moyer <jmoyer@redhat.com>.
This commit is contained in:
Ulrich Drepper 2008-03-04 00:28:04 +00:00
parent 3868fb6efc
commit 0f749099e9
2 changed files with 6 additions and 1 deletions

View File

@ -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>,

View File

@ -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;