=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/packet.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- src/usr.bin/ssh/packet.c 1999/11/19 19:58:18 1.12 +++ src/usr.bin/ssh/packet.c 1999/11/22 21:02:38 1.13 @@ -15,7 +15,7 @@ */ #include "includes.h" -RCSID("$Id: packet.c,v 1.12 1999/11/19 19:58:18 markus Exp $"); +RCSID("$Id: packet.c,v 1.13 1999/11/22 21:02:38 markus Exp $"); #include "xmalloc.h" #include "buffer.h" @@ -397,7 +397,7 @@ /* Read data from the socket. */ len = read(connection_in, buf, sizeof(buf)); if (len == 0) - fatal("Connection closed by remote host."); + fatal("Connection closed by %.200s", get_remote_ipaddr()); if (len < 0) fatal("Read from socket failed: %.100s", strerror(errno)); /* Append it to the buffer. */ @@ -513,7 +513,7 @@ /* Handle disconnect message. */ if ((unsigned char)buf[0] == SSH_MSG_DISCONNECT) - fatal("%.900s", packet_get_string(NULL)); + fatal("Received disconnect: %.900s", packet_get_string(NULL)); /* Ignore ignore messages. */ if ((unsigned char)buf[0] == SSH_MSG_IGNORE) @@ -636,7 +636,7 @@ packet_close(); /* Display the error locally and exit. */ - fatal("Local: %.100s", buf); + fatal("Disconnecting: %.100s", buf); } /* Checks if there is any buffered output, and tries to write some of the