aboutsummaryrefslogtreecommitdiff
path: root/nscd/connections.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/connections.c')
-rw-r--r--nscd/connections.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index e11132c..582a6cf 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -502,6 +502,14 @@ gr_send_answer (int conn, struct group *grp)
}
/* Send all the data. */
+ while (nblocks > UIO_MAXIOV)
+ {
+ if (writev (sock[conn], vec, UIO_MAXIOV) != total_len)
+ dbg_log (_("write incomplete on send group answer: %s"),
+ strerror (errno));
+ vec += UIO_MAXIOV;
+ nblocks -= UIO_MAXIOV;
+ }
if (writev (sock[conn], vec, nblocks) != total_len)
dbg_log (_("write incomplete on send group answer: %s"),
strerror (errno));