summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-11-09 15:46:24 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-11-09 15:46:24 +0000
commit9bda7ae4c695a0ff78e570151c067a62c5e44de6 (patch)
tree10d1ee966f4353377981af1759f24606a6eb7490 /packet.c
parent485075e8faf48c34c930446dc3f3905465941d56 (diff)
- markus@cvs.openbsd.org 2002/11/04 10:09:51
[packet.c] log before send disconnect; ok djm@
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/packet.c b/packet.c
index 5078630e7..6400ad9b1 100644
--- a/packet.c
+++ b/packet.c
@@ -37,7 +37,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: packet.c,v 1.98 2002/10/23 10:32:13 markus Exp $");
+RCSID("$OpenBSD: packet.c,v 1.99 2002/11/04 10:09:51 markus Exp $");
#include "xmalloc.h"
#include "buffer.h"
@@ -1226,6 +1226,9 @@ packet_disconnect(const char *fmt,...)
vsnprintf(buf, sizeof(buf), fmt, args);
va_end(args);
+ /* Display the error locally */
+ log("Disconnecting: %.100s", buf);
+
/* Send the disconnect message to the other side, and wait for it to get sent. */
if (compat20) {
packet_start(SSH2_MSG_DISCONNECT);
@@ -1245,8 +1248,6 @@ packet_disconnect(const char *fmt,...)
/* Close the connection. */
packet_close();
- /* Display the error locally and exit. */
- log("Disconnecting: %.100s", buf);
fatal_cleanup();
}