summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-02-28 23:15:23 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-02-28 23:15:23 +0800
commit89c0b2a6d863e54bd0253355146f09b92edeccda (patch)
tree8bbc278b055fd573a9d40ba171d9031626551371 /netio.c
parent31e379c300c69f1a628c74a3226346a48416e568 (diff)
Add cleanup
--HG-- branch : fastopen
Diffstat (limited to 'netio.c')
-rw-r--r--netio.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/netio.c b/netio.c
index 9aa7ae5..42d1b32 100644
--- a/netio.c
+++ b/netio.c
@@ -177,6 +177,13 @@ struct dropbear_progress_connection *connect_remote(const char* remotehost, cons
return c;
}
+void remove_connect_pending() {
+ while (ses.conn_pending.first) {
+ struct dropbear_progress_connection *c = ses.conn_pending.first->item;
+ remove_connect(c, ses.conn_pending.first);
+ }
+}
+
void set_connect_fds(fd_set *writefd) {
m_list_elem *iter;