comparison 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
comparison
equal deleted inserted replaced
12:7a37cff27258 13:db2c8e6fb284
101 101
102 int fd; 102 int fd;
103 103
104 fd = accept(listener->sock, NULL, NULL); 104 fd = accept(listener->sock, NULL, NULL);
105 if (fd < 0) { 105 if (fd < 0) {
106 TRACE(("accept failed"));
106 return; 107 return;
107 } 108 }
108 109
109 if (send_msg_channel_open_agent(listener->sock) != DROPBEAR_SUCCESS) { 110 if (send_msg_channel_open_agent(fd) != DROPBEAR_SUCCESS) {
110 close(fd); 111 close(fd);
111 } 112 }
112 113
113 } 114 }
114 115