diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-04-14 20:43:54 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-04-14 20:43:54 +0800 |
commit | 9754fdd995d517353379bc82109c959c2bee8a46 (patch) | |
tree | 543e5fdc248e6ee382ee2b606e8eb5c688f44c6b /netio.c | |
parent | ef20b9ff7a61a3619daf9d7f778d3b42c9322eb1 (diff) |
fastopen code was totally broken
Diffstat (limited to 'netio.c')
-rw-r--r-- | netio.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -72,7 +72,6 @@ static void connect_try_next(struct dropbear_progress_connection *c) { int fastopen = 0; #ifdef DROPBEAR_TCP_FAST_OPEN struct msghdr message; - struct iovec message; #endif for (r = c->res_iter; r; r = r->ai_next) @@ -102,9 +101,9 @@ static void connect_try_next(struct dropbear_progress_connection *c) { if (c->writequeue) { /* 6 is arbitrary, enough to hold initial packets */ int iovlen = 6; /* Linux msg_iovlen is a size_t */ - struct iov[6]; + struct iovec iov[6]; packet_queue_to_iovec(c->writequeue, iov, &iovlen); - message.msg_iov = &iov; + message.msg_iov = iov; message.msg_iovlen = iovlen; res = sendmsg(c->sock, &message, MSG_FASTOPEN); if (res < 0 && errno != EINPROGRESS) { |