(nscd_gethst_r): Set errno correctly if no entry is found.
authordrepper <drepper>
Sun, 14 Mar 1999 20:51:25 +0000 (20:51 +0000)
committerdrepper <drepper>
Sun, 14 Mar 1999 20:51:25 +0000 (20:51 +0000)
nscd/nscd_gethst_r.c

index 46f1611..961f695 100644 (file)
@@ -299,6 +299,8 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type,
       *h_errnop = hst_resp.error;
 
       __close (sock);
+      /* The `errno' to some value != ERANGE.  */
+      __set_errno (ENOENT);
       return -1;
     }
 }