Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
authorroland <roland>
Thu, 11 Jul 1996 23:52:04 +0000 (23:52 +0000)
committerroland <roland>
Thu, 11 Jul 1996 23:52:04 +0000 (23:52 +0000)
* nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.

nss/getXXbyYY_r.c

index 11c4e9f..37ad22d 100644 (file)
@@ -106,7 +106,7 @@ REENTRANT_NAME (ADD_PARAMS, LOOKUP_TYPE *result, char *buffer, int buflen
             initialize it.  */
          if ((_res.options & RES_INIT) == 0 && res_init () == -1)
            {
-             h_errno = NETDB_INTERNAL;
+             *h_errnop = NETDB_INTERNAL;
              return NULL;
            }
 #endif /* need _res */