diff netio.c @ 1050:c2a50c9f509e fastopen

Add cleanup
author Matt Johnston <matt@ucc.asn.au>
date Sat, 28 Feb 2015 23:15:23 +0800
parents 9cec9ed503bb
children fd3712d1ff7f
line wrap: on
line diff
--- a/netio.c	Sat Feb 28 09:06:40 2015 +0800
+++ b/netio.c	Sat Feb 28 23:15:23 2015 +0800
@@ -177,6 +177,13 @@
 	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;