From c7cb06a811249addb8c109bf748aba476b136fbc Mon Sep 17 00:00:00 2001 From: des Date: Sun, 14 Apr 2013 13:06:07 +0000 Subject: Silence "received disconnect" in the common case. --- crypto/openssh/packet.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crypto/openssh') diff --git a/crypto/openssh/packet.c b/crypto/openssh/packet.c index b9bf961..675f8cf 100644 --- a/crypto/openssh/packet.c +++ b/crypto/openssh/packet.c @@ -1465,7 +1465,11 @@ packet_read_poll_seqnr(u_int32_t *seqnr_p) case SSH2_MSG_DISCONNECT: reason = packet_get_int(); msg = packet_get_string(NULL); - error("Received disconnect from %s: %u: %.400s", + /* Ignore normal client exit notifications */ + do_log2(active_state->server_side && + reason == SSH2_DISCONNECT_BY_APPLICATION ? + SYSLOG_LEVEL_DEBUG1 : SYSLOG_LEVEL_ERROR, + "Received disconnect from %s: %u: %.400s", get_remote_ipaddr(), reason, msg); xfree(msg); cleanup_exit(255); @@ -1490,7 +1494,7 @@ packet_read_poll_seqnr(u_int32_t *seqnr_p) break; case SSH_MSG_DISCONNECT: msg = packet_get_string(NULL); - error("Received disconnect from %s: %.400s", + logit("Received disconnect from %s: %.400s", get_remote_ipaddr(), msg); cleanup_exit(255); break; -- cgit v1.1