diff options
Diffstat (limited to 'nss/getXXbyYY_r.c')
-rw-r--r-- | nss/getXXbyYY_r.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c index f12907c244..6ddfd61d8d 100644 --- a/nss/getXXbyYY_r.c +++ b/nss/getXXbyYY_r.c @@ -109,7 +109,8 @@ INTERNAL (REENTRANT_NAME) (ADD_PARAMS, LOOKUP_TYPE *resbuf, char *buffer, if ((_res.options & RES_INIT) == 0 && res_init () == -1) { *h_errnop = NETDB_INTERNAL; - return NULL; + *result = NULL; + return -1; } #endif /* need _res */ } |