=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/packet.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- src/usr.bin/ssh/packet.c 1999/12/02 20:16:34 1.17 +++ src/usr.bin/ssh/packet.c 1999/12/15 20:03:23 1.18 @@ -15,7 +15,7 @@ */ #include "includes.h" -RCSID("$Id: packet.c,v 1.17 1999/12/02 20:16:34 markus Exp $"); +RCSID("$Id: packet.c,v 1.18 1999/12/15 20:03:23 markus Exp $"); #include "xmalloc.h" #include "buffer.h" @@ -415,8 +415,10 @@ /* Read data from the socket. */ len = read(connection_in, buf, sizeof(buf)); - if (len == 0) - fatal("Connection closed by %.200s", get_remote_ipaddr()); + if (len == 0) { + log("Connection closed by %.200s", get_remote_ipaddr()); + fatal_cleanup(); + } if (len < 0) fatal("Read from socket failed: %.100s", strerror(errno)); /* Append it to the buffer. */