summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-04-14 20:43:54 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-04-14 20:43:54 +0800
commit9754fdd995d517353379bc82109c959c2bee8a46 (patch)
tree543e5fdc248e6ee382ee2b606e8eb5c688f44c6b /netio.c
parentef20b9ff7a61a3619daf9d7f778d3b42c9322eb1 (diff)
fastopen code was totally broken
Diffstat (limited to 'netio.c')
-rw-r--r--netio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/netio.c b/netio.c
index 2741de2..1564f2f 100644
--- a/netio.c
+++ b/netio.c
@@ -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) {