diff options
author | Darren Tucker <dtucker@zip.com.au> | 2009-06-21 18:14:48 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2009-06-21 18:14:48 +1000 |
commit | 12b4a6504b3f7bad3c144761714fb429669f56d0 (patch) | |
tree | 6e4b94f20b31dc941e98feda60661ed1c6ea3b9f | |
parent | 39c7632c1b07417fe5704b763c02d4cff147c885 (diff) |
- andreas@cvs.openbsd.org 2009/05/27 06:34:36
[kex.c kex.h]
Move the KEX_COOKIE_LEN define to kex.h
ok markus@
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | clientloop.c | 8 |
2 files changed, 11 insertions, 1 deletions
@@ -67,6 +67,10 @@ | |||
67 | Send SSH2_MSG_DISCONNECT when the client disconnects. From a larger | 67 | Send SSH2_MSG_DISCONNECT when the client disconnects. From a larger |
68 | change from Martin Forssen, maf at appgate dot com. | 68 | change from Martin Forssen, maf at appgate dot com. |
69 | ok markus@ | 69 | ok markus@ |
70 | - andreas@cvs.openbsd.org 2009/05/27 06:34:36 | ||
71 | [kex.c kex.h] | ||
72 | Move the KEX_COOKIE_LEN define to kex.h | ||
73 | ok markus@ | ||
70 | 74 | ||
71 | 20090616 | 75 | 20090616 |
72 | - (dtucker) [configure.ac defines.h] Bug #1607: handle the case where fsid_t | 76 | - (dtucker) [configure.ac defines.h] Bug #1607: handle the case where fsid_t |
diff --git a/clientloop.c b/clientloop.c index 2cb8c3a49..d5a06556a 100644 --- a/clientloop.c +++ b/clientloop.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: clientloop.c,v 1.210 2009/05/25 06:48:01 andreas Exp $ */ | 1 | /* $OpenBSD: clientloop.c,v 1.211 2009/05/27 06:33:39 andreas Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1476,6 +1476,12 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id) | |||
1476 | /* Stop watching for window change. */ | 1476 | /* Stop watching for window change. */ |
1477 | signal(SIGWINCH, SIG_DFL); | 1477 | signal(SIGWINCH, SIG_DFL); |
1478 | 1478 | ||
1479 | packet_start(SSH2_MSG_DISCONNECT); | ||
1480 | packet_put_int(SSH2_DISCONNECT_BY_APPLICATION); | ||
1481 | packet_put_cstring("disconnected by user"); | ||
1482 | packet_send(); | ||
1483 | packet_write_wait(); | ||
1484 | |||
1479 | channel_free_all(); | 1485 | channel_free_all(); |
1480 | 1486 | ||
1481 | if (have_pty) | 1487 | if (have_pty) |