summaryrefslogtreecommitdiffhomepage
path: root/svr-agentfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-06-03 18:08:34 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-06-03 18:08:34 +0000
commitae1b0b07cf0bfe3e4d8694409bd490ba8c325b95 (patch)
tree0d633bc0b52ece436ca86ee84581ce7058984a31 /svr-agentfwd.c
parent9847cfe73d073e7986304915702ebb0e2f99eb15 (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.c3
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);
}