From: Roland McGrath Date: Sat, 26 Feb 2005 01:19:05 +0000 (+0000) Subject: 2005-02-21 Jakub Jelinek X-Git-Tag: cvs/glibc-2_3_5~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b35abdf01f55e26c7b23dac2d93ab87cd30cebf1;p=thirdparty%2Fglibc.git 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. --- 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;