diff common-channel.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 7f77962de998
children 0913e2ee3545
line wrap: on
line diff
--- a/common-channel.c	Thu Jun 03 17:29:17 2004 +0000
+++ b/common-channel.c	Thu Jun 03 18:08:34 2004 +0000
@@ -607,7 +607,7 @@
 		/* on error/eof, send eof */
 		if (len == 0 || errno != EINTR) {
 			closeoutfd(channel, fd);
-			TRACE(("leave send_msg_channel_data: read err"));
+			TRACE(("leave send_msg_channel_data: read err %d", channel->index));
 		}
 		buf_free(buf);
 		return;
@@ -889,7 +889,7 @@
 	TRACE(("leave send_msg_channel_open_confirmation"));
 }
 
-#ifdef USE_LISTENERS
+#ifdef USING_LISTENERS
 /* Create a new channel, and start the open request. This is intended
  * for X11, agent, tcp forwarding, and should be filled with channel-specific
  * options, with the calling function calling encrypt_packet() after
@@ -946,7 +946,10 @@
 	channel->remotechan =  buf_getint(ses.payload);
 	channel->transwindow = buf_getint(ses.payload);
 	channel->transmaxpacket = buf_getint(ses.payload);
+	
+	TRACE(("new chan remote %d localho %d", channel->remotechan, chan));
 
+	
 	TRACE(("leave recv_msg_channel_open_confirmation"));
 }
 
@@ -1012,4 +1015,4 @@
 	}
 }
 
-#endif /* USE_LISTENERS */
+#endif /* USING_LISTENERS */