summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--clientloop.c19
2 files changed, 12 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index d215a6151..4caffa290 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,7 +4,7 @@
4 [cli.c] 4 [cli.c]
5 cli_read() fails to catch SIGINT + overflow; from obdb@zzlevo.net 5 cli_read() fails to catch SIGINT + overflow; from obdb@zzlevo.net
6 - markus@cvs.openbsd.org 2001/05/08 19:17:31 6 - markus@cvs.openbsd.org 2001/05/08 19:17:31
7 [channels.c serverloop.c] 7 [channels.c serverloop.c clientloop.c]
8 adds correct error reporting to async connect()s 8 adds correct error reporting to async connect()s
9 fixes the server-discards-data-before-connected-bug found by 9 fixes the server-discards-data-before-connected-bug found by
10 onoe@sm.sony.co.jp 10 onoe@sm.sony.co.jp
@@ -5379,4 +5379,4 @@
5379 - Wrote replacements for strlcpy and mkdtemp 5379 - Wrote replacements for strlcpy and mkdtemp
5380 - Released 1.0pre1 5380 - Released 1.0pre1
5381 5381
5382$Id: ChangeLog,v 1.1211 2001/05/08 23:58:37 mouring Exp $ 5382$Id: ChangeLog,v 1.1212 2001/05/09 00:01:18 mouring Exp $
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();