about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--inet/ether_hton.c2
-rw-r--r--inet/getnetgrent_r.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e4356852d2..3e126ef760 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-08-03  Ulrich Drepper  <drepper@cygnus.com>
+
+	* inet/ether_hton.c: Pass errno pointer to NSS function.
+	* inet/getnetgrent_r.c: Likewise.
+	Reported by Marty Leisner <leisner@rochester.rr.com>.
+
 1999-08-02  Thorsten Kukuk  <kukuk@suse.de>
 
 	* nis/nis_callback.c: Fix port problem on big-endian machines
diff --git a/inet/ether_hton.c b/inet/ether_hton.c
index 92353c19c8..848fe92115 100644
--- a/inet/ether_hton.c
+++ b/inet/ether_hton.c
@@ -73,7 +73,7 @@ ether_hostton (const char *hostname, struct ether_addr *addr)
     {
       char buffer[1024];
 
-      status = (*fct) (hostname, &etherent, buffer, sizeof buffer);
+      status = (*fct) (hostname, &etherent, buffer, sizeof buffer, &errno);
 
       no_more = __nss_next (&nip, "gethostton_r", (void **) &fct, status, 0);
     }
diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c
index 4bbba38ea2..d3a9a14630 100644
--- a/inet/getnetgrent_r.c
+++ b/inet/getnetgrent_r.c
@@ -207,7 +207,7 @@ __internal_getnetgrent_r (char **hostp, char **userp, char **domainp,
   no_more = setup ((void **) &fct, "getnetgrent_r", 0);
   while (! no_more)
     {
-      status = (*fct) (datap, buffer, buflen);
+      status = (*fct) (datap, buffer, buflen, &errno);
 
       if (status == NSS_STATUS_RETURN)
 	{