summaryrefslogtreecommitdiff
path: root/nss/getXXbyYY_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/getXXbyYY_r.c')
-rw-r--r--nss/getXXbyYY_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c
index 11c4e9f71f..37ad22d045 100644
--- a/nss/getXXbyYY_r.c
+++ b/nss/getXXbyYY_r.c
@@ -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 */