summaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-02-26 01:19:05 +0000
committerRoland McGrath <roland@gnu.org>2005-02-26 01:19:05 +0000
commitb35abdf01f55e26c7b23dac2d93ab87cd30cebf1 (patch)
treebd86e6d76f722ea30be56c8ffdc1bc88fd40177b /nscd
parent8995ebd0a716749c7411612d0156492e185aa217 (diff)
2005-02-21 Jakub Jelinek <jakub@redhat.com>
[BZ #768] * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to NETDB_INTERNAL if buffer is too small.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/nscd_gethst_r.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c
index 5d9d569107..2d6fdb0627 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;