1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Silence "received disconnect" in the common case.

This commit is contained in:
Dag-Erling Smørgrav 2013-04-14 13:06:07 +00:00
commit f29b8a64d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249475

View File

@ -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;