summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshd.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>1999-11-19 19:58:19 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>1999-11-19 19:58:19 +0000
commit9ba6c07c35c4aa8b6b2e5b7d71f11a8c65ec2284 (patch)
tree99225bb4ca0444724297a872de465e41e341271a /usr.bin/ssh/sshd.c
parenta5c1321d09c4325a22aa5261a6a6794cbdeafdfe (diff)
SSH_CMSG_MAX_PACKET_SIZE, some clients use this, some need this, niels@
[hope this time my ISP stays alive during commit]
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r--usr.bin/ssh/sshd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 8ab869b0bd9..d085e4d3857 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -18,7 +18,7 @@ agent connections.
*/
#include "includes.h"
-RCSID("$Id: sshd.c,v 1.58 1999/11/18 14:00:49 markus Exp $");
+RCSID("$Id: sshd.c,v 1.59 1999/11/19 19:58:18 markus Exp $");
#include "xmalloc.h"
#include "rsa.h"
@@ -1536,6 +1536,11 @@ void do_authenticated(struct passwd *pw)
channel_input_port_forward_request(pw->pw_uid == 0);
break;
+ case SSH_CMSG_MAX_PACKET_SIZE:
+ if (packet_set_maxsize(packet_get_int()) < 0)
+ goto fail;
+ break;
+
case SSH_CMSG_EXEC_SHELL:
/* Set interactive/non-interactive mode. */
packet_set_interactive(have_pty || display != NULL,
@@ -1574,10 +1579,6 @@ void do_authenticated(struct passwd *pw)
xfree(command);
return;
- case SSH_CMSG_MAX_PACKET_SIZE:
- debug("The server does not support limiting packet size.");
- goto fail;
-
default:
/* Any unknown messages in this phase are ignored, and a failure
message is returned. */