diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-06-03 18:08:34 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-06-03 18:08:34 +0000 |
commit | ae1b0b07cf0bfe3e4d8694409bd490ba8c325b95 (patch) | |
tree | 0d633bc0b52ece436ca86ee84581ce7058984a31 /svr-agentfwd.c | |
parent | 9847cfe73d073e7986304915702ebb0e2f99eb15 (diff) |
Fixed stupid agentfwd error (using the listening FD, not the accepted on. gah)
--HG--
extra : convert_revision : 27e793a6395dbf5f2c0aa130d37fad2e4ef67e01
Diffstat (limited to 'svr-agentfwd.c')
-rw-r--r-- | svr-agentfwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svr-agentfwd.c b/svr-agentfwd.c index 4c49e45..fd068fe 100644 --- a/svr-agentfwd.c +++ b/svr-agentfwd.c @@ -103,10 +103,11 @@ static void agentaccept(struct Listener * listener) { 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); } |