summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels.c b/channels.c
index 163312c57..fd1b124ee 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.152 2001/12/28 12:14:27 markus Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.153 2001/12/28 14:50:54 markus Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -2185,7 +2185,7 @@ void
2185channel_request_remote_forwarding(u_short listen_port, 2185channel_request_remote_forwarding(u_short listen_port,
2186 const char *host_to_connect, u_short port_to_connect) 2186 const char *host_to_connect, u_short port_to_connect)
2187{ 2187{
2188 int payload_len, type, success = 0; 2188 int type, success = 0;
2189 2189
2190 /* Record locally that connection to this host/port is permitted. */ 2190 /* Record locally that connection to this host/port is permitted. */
2191 if (num_permitted_opens >= SSH_MAX_FORWARDS_PER_DIRECTION) 2191 if (num_permitted_opens >= SSH_MAX_FORWARDS_PER_DIRECTION)
@@ -2212,7 +2212,7 @@ channel_request_remote_forwarding(u_short listen_port,
2212 packet_write_wait(); 2212 packet_write_wait();
2213 2213
2214 /* Wait for response from the remote side. */ 2214 /* Wait for response from the remote side. */
2215 type = packet_read(&payload_len); 2215 type = packet_read();
2216 switch (type) { 2216 switch (type) {
2217 case SSH_SMSG_SUCCESS: 2217 case SSH_SMSG_SUCCESS:
2218 success = 1; 2218 success = 1;