summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>1999-12-15 20:03:24 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>1999-12-15 20:03:24 +0000
commit14b43d2128ed7655b516b0cb0b267ddb11a2d0d9 (patch)
treeebd656e8400996608dec91808d733caa6aaaf99d /usr.bin
parent858c0b45cf0cb1a230e5254e08df0f340a9a166a (diff)
"Connection closed by x.x.x.x": fatal() -> log()
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/packet.c8
1 files changed, 5 insertions, 3 deletions
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. */