Skip to content

Commit

Permalink
[BZ #5854]
Browse files Browse the repository at this point in the history
	* nis/ypclnt.c (yp_order): Fix handling of return value of
	do_ypcall_tr call.
	Patch by Jeff Moyer <jmoyer@redhat.com>.
  • Loading branch information
Ulrich Drepper committed Mar 4, 2008
1 parent 3868fb6 commit 0f74909
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>,
Expand Down
2 changes: 1 addition & 1 deletion nis/ypclnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0f74909

Please sign in to comment.