diff options
author | 1999-12-15 20:03:23 +0000 | |
---|---|---|
committer | 1999-12-15 20:03:23 +0000 | |
commit | 6f75dd162137e4d7d69da35eaa6b8d34e33a5d83 (patch) | |
tree | af7004696065dd86fb8b6db99964b9ec46ad3e57 | |
parent | keysize warnings talk about identity files (diff) | |
download | wireguard-openbsd-6f75dd162137e4d7d69da35eaa6b8d34e33a5d83.tar.xz wireguard-openbsd-6f75dd162137e4d7d69da35eaa6b8d34e33a5d83.zip |
"Connection closed by x.x.x.x": fatal() -> log()
-rw-r--r-- | usr.bin/ssh/packet.c | 8 |
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. */ |