]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2005-02-21 Jakub Jelinek <jakub@redhat.com>
authorRoland McGrath <roland@gnu.org>
Sat, 26 Feb 2005 01:19:05 +0000 (01:19 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 26 Feb 2005 01:19:05 +0000 (01:19 +0000)
[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

index 5d9d569107a8f43c74bea9898e52f0b01a2c46bb..2d6fdb06271c92ade49cdadf0918c27b5ca90816 100644 (file)
@@ -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;