diff options
author | dtucker <dtucker> | 2009-06-21 08:14:48 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2009-06-21 08:14:48 +0000 |
commit | 1203b4a6790c1920d69f90622cb6390f81711413 (patch) | |
tree | 572fcd119afd6e2483c4d6ea32cd95743428d76a /clientloop.c | |
parent | a33c736c6d379ea96b51077eb2d0b7779b089cc3 (diff) | |
download | openssh-1203b4a6790c1920d69f90622cb6390f81711413.tar.gz |
- 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@
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clientloop.c b/clientloop.c index 2cb8c3a4..d5a06556 100644 --- a/clientloop.c +++ b/clientloop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clientloop.c,v 1.210 2009/05/25 06:48:01 andreas Exp $ */ +/* $OpenBSD: clientloop.c,v 1.211 2009/05/27 06:33:39 andreas Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * 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) /* 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(); + channel_free_all(); if (have_pty) |