]> andersk Git - openssh.git/blobdiff - clientloop.c
- (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1
[openssh.git] / clientloop.c
index 43f001bc4b28ad0ee7dbfc2f66eae0a2f1cb6245..9a7dc0ab0b01ba9b58848bb6dce0cbbbfcfb085e 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.212 2009/05/28 16:50:16 andreas Exp $ */
+/* $OpenBSD: clientloop.c,v 1.213 2009/07/05 19:28:33 stevesk Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -636,7 +636,7 @@ static void
 client_process_net_input(fd_set *readset)
 {
        int len, cont = 0;
-       char buf[8192];
+       char buf[SSH_IOBUFSZ];
 
        /*
         * Read input from the server, and add any such data to the buffer of
@@ -1129,7 +1129,7 @@ static void
 client_process_input(fd_set *readset)
 {
        int len;
-       char buf[8192];
+       char buf[SSH_IOBUFSZ];
 
        /* Read input from stdin. */
        if (FD_ISSET(fileno(stdin), readset)) {
@@ -1477,11 +1477,13 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
        /* Stop watching for window change. */
        signal(SIGWINCH, SIG_DFL);
 
-       packet_start(SSH2_MSG_DISCONNECT);
-       packet_put_int(SSH2_DISCONNECT_BY_APPLICATION);
-       packet_put_cstring("disconnected by user");
-       packet_send();
-       packet_write_wait();
+       if (compat20) {
+               packet_start(SSH2_MSG_DISCONNECT);
+               packet_put_int(SSH2_DISCONNECT_BY_APPLICATION);
+               packet_put_cstring("disconnected by user");
+               packet_send();
+               packet_write_wait();
+       }
 
        channel_free_all();
 
This page took 0.05063 seconds and 4 git commands to generate.