about summary refs log tree commit diff
path: root/nis
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>1999-04-08 02:10:39 +0000
committerAndreas Schwab <schwab@suse.de>1999-04-08 02:10:39 +0000
commit50f301a819f48c6e64232f2cd22d8e77f59d0f29 (patch)
tree9a387001ce142a37230f98423cf5db120b6653d5 /nis
parent516d718a39eb540abca2915499b925962886ded9 (diff)
downloadglibc-50f301a819f48c6e64232f2cd22d8e77f59d0f29.tar.gz
glibc-50f301a819f48c6e64232f2cd22d8e77f59d0f29.tar.xz
glibc-50f301a819f48c6e64232f2cd22d8e77f59d0f29.zip
1999-04-01 Thorsten Kukuk <kukuk@suse.de>
	* sunrpc/Versions: Add new xdr functions to GLIBC_2.1.1
	* sunrpc/xdr.c: Add xdr_hyper, xdr_u_hyper, xdr_longlong_t and
	xdr_u_longlong_t. Based on patch from Dan Shechter
	<damageboy@isdn.net.il>.
	* sunrpc/xdr_intXX_t.c: Implement xdr_int64_t, xdr_uint64_t
	* sunrpc/rpc/xdr.h: Add prototypes for new xdr functions.

	* nis/nis_lookup.c (nis_lookup): Don't overwrite RPC error code.
Diffstat (limited to 'nis')
-rw-r--r--nis/nis_lookup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nis/nis_lookup.c b/nis/nis_lookup.c
index e194b977e4..4eed61ecdc 100644
--- a/nis/nis_lookup.c
+++ b/nis/nis_lookup.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@uni-paderborn.de>, 1997.
 
@@ -103,6 +103,8 @@ nis_lookup (const_nis_name name, const unsigned int flags)
 	    status = NIS_RPCERROR;
 	  else
 	    {
+	      status = NIS_SUCCESS;
+
 	      if (NIS_RES_STATUS (res) == NIS_SUCCESS)
 		{
 		    if (__type_of(NIS_RES_OBJECT (res)) == NIS_LINK_OBJ &&
@@ -171,7 +173,6 @@ nis_lookup (const_nis_name name, const unsigned int flags)
 	      break;
 	    }
 	  link_first_try = 0; /* Set it back */
-	  status= NIS_SUCCESS;
 	}
       while ((flags & HARD_LOOKUP) && status == NIS_RPCERROR);