summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/clientloop.c b/clientloop.c
index 3294b0cfe..b2b7debc8 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -59,7 +59,7 @@
59 */ 59 */
60 60
61#include "includes.h" 61#include "includes.h"
62RCSID("$OpenBSD: clientloop.c,v 1.68 2001/05/06 21:45:14 markus Exp $"); 62RCSID("$OpenBSD: clientloop.c,v 1.69 2001/05/08 19:17:31 markus Exp $");
63 63
64#include "ssh.h" 64#include "ssh.h"
65#include "ssh1.h" 65#include "ssh1.h"
@@ -1150,20 +1150,21 @@ client_input_channel_open(int type, int plen, void *ctxt)
1150 c->remote_id = rchan; 1150 c->remote_id = rchan;
1151 c->remote_window = rwindow; 1151 c->remote_window = rwindow;
1152 c->remote_maxpacket = rmaxpack; 1152 c->remote_maxpacket = rmaxpack;
1153 1153 if (c->type != SSH_CHANNEL_CONNECTING) {
1154 packet_start(SSH2_MSG_CHANNEL_OPEN_CONFIRMATION); 1154 packet_start(SSH2_MSG_CHANNEL_OPEN_CONFIRMATION);
1155 packet_put_int(c->remote_id); 1155 packet_put_int(c->remote_id);
1156 packet_put_int(c->self); 1156 packet_put_int(c->self);
1157 packet_put_int(c->local_window); 1157 packet_put_int(c->local_window);
1158 packet_put_int(c->local_maxpacket); 1158 packet_put_int(c->local_maxpacket);
1159 packet_send(); 1159 packet_send();
1160 }
1160 } else { 1161 } else {
1161 debug("failure %s", ctype); 1162 debug("failure %s", ctype);
1162 packet_start(SSH2_MSG_CHANNEL_OPEN_FAILURE); 1163 packet_start(SSH2_MSG_CHANNEL_OPEN_FAILURE);
1163 packet_put_int(rchan); 1164 packet_put_int(rchan);
1164 packet_put_int(SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED); 1165 packet_put_int(SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED);
1165 if (!(datafellows & SSH_BUG_OPENFAILURE)) { 1166 if (!(datafellows & SSH_BUG_OPENFAILURE)) {
1166 packet_put_cstring("bla bla"); 1167 packet_put_cstring("open failed");
1167 packet_put_cstring(""); 1168 packet_put_cstring("");
1168 } 1169 }
1169 packet_send(); 1170 packet_send();