mirror of
https://github.com/clearml/dropbear
synced 2025-03-03 18:52:00 +00:00
Fix when iov queue is large
This commit is contained in:
parent
20f9683ae0
commit
a070159cc5
2
netio.c
2
netio.c
@ -273,7 +273,7 @@ void packet_queue_to_iovec(struct Queue *queue, struct iovec *iov, unsigned int
|
||||
|
||||
*iov_count = MIN(MIN(queue->count, IOV_MAX), *iov_count);
|
||||
|
||||
for (l = queue->head, i = 0; l; l = l->link, i++)
|
||||
for (l = queue->head, i = 0; i < *iov_count; l = l->link, i++)
|
||||
{
|
||||
writebuf = (buffer*)l->item;
|
||||
len = writebuf->len - 1 - writebuf->pos;
|
||||
|
Loading…
Reference in New Issue
Block a user