=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/packet.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- src/usr.bin/ssh/packet.c 1999/11/24 19:53:48 1.16 +++ src/usr.bin/ssh/packet.c 1999/12/02 20:16:34 1.17 @@ -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 @@ *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_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. */