summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-02-19 22:41:51 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-02-19 22:41:51 +0800
commit55416bb7680dea83a12e459871f45c163af8539a (patch)
tree7bd1c07a66199a388d32e2ac54b8a9042d07ce18
parentd275e08165dda61c6ce2263cdfd8f5684d8a6b55 (diff)
downloaddropbear-55416bb7680dea83a12e459871f45c163af8539a.tar.gz
Add the missing second half of iov code
-rw-r--r--dbutil.c4
1 files changed, 4 insertions, 0 deletions
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) {