Mercurial > dropbear
comparison dbutil.c @ 1029:ea4676b840ef fastopen
Add the missing second half of iov code
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 19 Feb 2015 22:41:51 +0800 |
parents | daf21fd50abf |
children | 1fff5d7163f6 |
comparison
equal
deleted
inserted
replaced
1027:daf21fd50abf | 1029:ea4676b840ef |
---|---|
1084 if (res < 0 && errno == EOPNOTSUPP) { | 1084 if (res < 0 && errno == EOPNOTSUPP) { |
1085 TRACE(("Fastopen not supported")); | 1085 TRACE(("Fastopen not supported")); |
1086 /* No kernel MSG_FASTOPEN support. Fall back below */ | 1086 /* No kernel MSG_FASTOPEN support. Fall back below */ |
1087 c->writequeue = NULL; | 1087 c->writequeue = NULL; |
1088 } | 1088 } |
1089 m_free(message.msg_iov); | |
1090 if (res > 0) { | |
1091 packet_queue_consume(c->writequeue, res); | |
1092 } | |
1089 } | 1093 } |
1090 | 1094 |
1091 if (!c->writequeue) { | 1095 if (!c->writequeue) { |
1092 res = connect(c->sock, r->ai_addr, r->ai_addrlen); | 1096 res = connect(c->sock, r->ai_addr, r->ai_addrlen); |
1093 } | 1097 } |