summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/channels.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-04-16 16:40:44 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-04-16 16:40:44 +0000
commite3a7f1e52257b44fda03c6534e4ae292534cbd83 (patch)
tree814937a441c4689a41a8114f390e0b11cae3761f /usr.bin/ssh/channels.c
parent472c87749ef241a842d7645567bc45606b720024 (diff)
fix pr 1196, listen_port and port_to_connect interchanged
Diffstat (limited to 'usr.bin/ssh/channels.c')
-rw-r--r--usr.bin/ssh/channels.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c
index eabcc91c909..c2fb3d27a91 100644
--- a/usr.bin/ssh/channels.c
+++ b/usr.bin/ssh/channels.c
@@ -17,7 +17,7 @@
*/
#include "includes.h"
-RCSID("$Id: channels.c,v 1.49 2000/04/14 10:30:30 markus Exp $");
+RCSID("$Id: channels.c,v 1.50 2000/04/16 16:40:43 markus Exp $");
#include "ssh.h"
#include "packet.h"
@@ -1465,9 +1465,9 @@ channel_request_remote_forwarding(u_short listen_port, const char *host_to_conne
packet_put_int(listen_port);
} else {
packet_start(SSH_CMSG_PORT_FORWARD_REQUEST);
- packet_put_int(port_to_connect);
- packet_put_cstring(host_to_connect);
packet_put_int(listen_port);
+ packet_put_cstring(host_to_connect);
+ packet_put_int(port_to_connect);
packet_send();
packet_write_wait();
/*