From 14b43d2128ed7655b516b0cb0b267ddb11a2d0d9 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Wed, 15 Dec 1999 20:03:24 +0000 Subject: "Connection closed by x.x.x.x": fatal() -> log() --- usr.bin/ssh/packet.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c index 4e8a2624e9e..baae013d193 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.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 @@ packet_read(int *payload_len_ptr) /* 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. */ -- cgit v1.2.3