about summary refs log tree commit diff
path: root/nss/getXXent_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/getXXent_r.c')
-rw-r--r--nss/getXXent_r.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nss/getXXent_r.c b/nss/getXXent_r.c
index 5c8384f2fe..49064619ae 100644
--- a/nss/getXXent_r.c
+++ b/nss/getXXent_r.c
@@ -245,8 +245,7 @@ INTERNAL (REENTRANT_GETNAME) (LOOKUP_TYPE *resbuf, char *buffer, size_t buflen,
     {
       int is_last_nip = nip == last_nip;
 
-      status = (*fct) (resbuf, buffer, buflen, __errno_location ()
-		       H_ERRNO_VAR);
+      status = (*fct) (resbuf, buffer, buflen, &errno H_ERRNO_VAR);
 
       /* The the status is NSS_STATUS_TRYAGAIN and errno is ERANGE the
 	 provided buffer is too small.  In this case we should give