From b35abdf01f55e26c7b23dac2d93ab87cd30cebf1 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 26 Feb 2005 01:19:05 +0000 Subject: [PATCH] 2005-02-21 Jakub Jelinek [BZ #768] * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to NETDB_INTERNAL if buffer is too small. --- nscd/nscd_gethst_r.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c index 5d9d569107a..2d6fdb06271 100644 --- a/nscd/nscd_gethst_r.c +++ b/nscd/nscd_gethst_r.c @@ -218,6 +218,7 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type, ? INADDRSZ : IN6ADDRSZ))) { no_room: + *h_errnop = NETDB_INTERNAL; __set_errno (ERANGE); retval = ERANGE; goto out_close; -- 2.47.2