From 518584cb25aa3077bf9eb90e72632b85b82411af Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Thu, 2 Dec 1999 20:16:35 +0000 Subject: set loglevel for SSH_MSG_DISCONNECT to log(), not fatal() --- usr.bin/ssh/packet.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c index 566df5beaef..4e8a2624e9e 100644 --- a/usr.bin/ssh/packet.c +++ b/usr.bin/ssh/packet.c @@ -15,7 +15,7 @@ */ #include "includes.h" -RCSID("$Id: packet.c,v 1.16 1999/11/24 19:53:48 markus Exp $"); +RCSID("$Id: packet.c,v 1.17 1999/12/02 20:16:34 markus Exp $"); #include "xmalloc.h" #include "buffer.h" @@ -530,8 +530,10 @@ restart: *payload_len_ptr = buffer_len(&incoming_packet); /* Handle disconnect message. */ - if ((unsigned char) buf[0] == SSH_MSG_DISCONNECT) - fatal("Received disconnect: %.900s", packet_get_string(NULL)); + if ((unsigned char) buf[0] == SSH_MSG_DISCONNECT) { + log("Received disconnect: %.900s", packet_get_string(NULL)); + fatal_cleanup(); + } /* Ignore ignore messages. */ if ((unsigned char) buf[0] == SSH_MSG_IGNORE) @@ -662,7 +664,8 @@ packet_disconnect(const char *fmt,...) packet_close(); /* Display the error locally and exit. */ - fatal("Disconnecting: %.100s", buf); + log("Disconnecting: %.100s", buf); + fatal_cleanup(); } /* Checks if there is any buffered output, and tries to write some of the output. */ -- cgit v1.2.3