diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-02-18 22:46:15 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-02-18 22:46:15 +0800 |
commit | 755c1458f0197d4da1dcb86ac832a8ffa8d02b27 (patch) | |
tree | cebef8bd66e3998f615939be9e6a4e3f78f3b255 /svr-tcpfwd.c | |
parent | 8795d733ecd27ef7aa1cc5d9e68b5ecb5a90f64e (diff) |
async connections working
--HG--
branch : fastopen
Diffstat (limited to 'svr-tcpfwd.c')
-rw-r--r-- | svr-tcpfwd.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c index f2c4b93..8f364b5 100644 --- a/svr-tcpfwd.c +++ b/svr-tcpfwd.c @@ -270,19 +270,7 @@ static int newtcpdirect(struct Channel * channel) { } snprintf(portstring, sizeof(portstring), "%d", destport); - sock = connect_remote(desthost, portstring, NULL); - if (sock < 0) { - err = SSH_OPEN_CONNECT_FAILED; - TRACE(("leave newtcpdirect: sock failed")) - goto out; - } - - ses.maxfd = MAX(ses.maxfd, sock); - - /* We don't set readfd, that will get set after the connection's - * progress succeeds */ - channel->writefd = sock; - channel->initconn = 1; + channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel); channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; |