From 0f749099e991ef47514bd635225a89a9c0250b80 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 4 Mar 2008 00:28:04 +0000 Subject: [BZ #5854] * nis/ypclnt.c (yp_order): Fix handling of return value of do_ypcall_tr call. Patch by Jeff Moyer . --- nis/ypclnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nis') 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; -- cgit v1.1