Mercurial > dropbear
diff svr-agentfwd.c @ 13:db2c8e6fb284
Fixed stupid agentfwd error (using the listening FD, not the accepted on. gah)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 03 Jun 2004 18:08:34 +0000 |
parents | f76c9389e9e0 |
children | f789045062e6 |
line wrap: on
line diff
--- a/svr-agentfwd.c Thu Jun 03 17:29:17 2004 +0000 +++ b/svr-agentfwd.c Thu Jun 03 18:08:34 2004 +0000 @@ -103,10 +103,11 @@ fd = accept(listener->sock, NULL, NULL); if (fd < 0) { + TRACE(("accept failed")); return; } - if (send_msg_channel_open_agent(listener->sock) != DROPBEAR_SUCCESS) { + if (send_msg_channel_open_agent(fd) != DROPBEAR_SUCCESS) { close(fd); }