From 2e7d468b906488c152afb463226330a0a97aacba Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 19 Feb 2015 22:41:51 +0800 Subject: [PATCH] Add the missing second half of iov code --HG-- branch : fastopen --- dbutil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dbutil.c b/dbutil.c index 01b541c..f1a0f19 100644 --- a/dbutil.c +++ b/dbutil.c @@ -1086,6 +1086,10 @@ static void connect_try_next(struct dropbear_progress_connection *c) { /* No kernel MSG_FASTOPEN support. Fall back below */ c->writequeue = NULL; } + m_free(message.msg_iov); + if (res > 0) { + packet_queue_consume(c->writequeue, res); + } } if (!c->writequeue) {