summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sshd.c b/sshd.c
index 1953807b0..ad51dacd4 100644
--- a/sshd.c
+++ b/sshd.c
@@ -18,7 +18,7 @@ agent connections.
18*/ 18*/
19 19
20#include "includes.h" 20#include "includes.h"
21RCSID("$Id: sshd.c,v 1.25 1999/11/18 21:25:48 damien Exp $"); 21RCSID("$Id: sshd.c,v 1.26 1999/11/21 02:23:53 damien Exp $");
22 22
23#include "xmalloc.h" 23#include "xmalloc.h"
24#include "rsa.h" 24#include "rsa.h"
@@ -1753,6 +1753,11 @@ void do_authenticated(struct passwd *pw)
1753 channel_input_port_forward_request(pw->pw_uid == 0); 1753 channel_input_port_forward_request(pw->pw_uid == 0);
1754 break; 1754 break;
1755 1755
1756 case SSH_CMSG_MAX_PACKET_SIZE:
1757 if (packet_set_maxsize(packet_get_int()) < 0)
1758 goto fail;
1759 break;
1760
1756 case SSH_CMSG_EXEC_SHELL: 1761 case SSH_CMSG_EXEC_SHELL:
1757 /* Set interactive/non-interactive mode. */ 1762 /* Set interactive/non-interactive mode. */
1758 packet_set_interactive(have_pty || display != NULL, 1763 packet_set_interactive(have_pty || display != NULL,
@@ -1791,10 +1796,6 @@ void do_authenticated(struct passwd *pw)
1791 xfree(command); 1796 xfree(command);
1792 return; 1797 return;
1793 1798
1794 case SSH_CMSG_MAX_PACKET_SIZE:
1795 debug("The server does not support limiting packet size.");
1796 goto fail;
1797
1798 default: 1799 default:
1799 /* Any unknown messages in this phase are ignored, and a failure 1800 /* Any unknown messages in this phase are ignored, and a failure
1800 message is returned. */ 1801 message is returned. */