about summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/publickey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sunrpc/publickey.c b/sunrpc/publickey.c
index 2519c3d743..71a11079dd 100644
--- a/sunrpc/publickey.c
+++ b/sunrpc/publickey.c
@@ -1,5 +1,5 @@
 /* Get public or secret key from key server.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -64,7 +64,7 @@ getpublickey (const char *name, char *key)
 
   while (! no_more)
     {
-      status = (*fct) (name, key, __errno_location ());
+      status = (*fct) (name, key, &errno);
 
       no_more = __nss_next (&nip, "getpublickey", (void **) &fct, status, 0);
     }