diff options
author | 2015-02-12 20:34:19 +0000 | |
---|---|---|
committer | 2015-02-12 20:34:19 +0000 | |
commit | 66467b1bd64825be3774b48747909f0747221af3 (patch) | |
tree | 3fc05389506295c73cfbacf38ff827a808a0e768 | |
parent | Fix a bug introduced in the last commit that broke EOF handling (diff) | |
download | wireguard-openbsd-66467b1bd64825be3774b48747909f0747221af3.tar.xz wireguard-openbsd-66467b1bd64825be3774b48747909f0747221af3.zip |
Prevent sshd spamming syslog with "ssh_dispatch_run_fatal: disconnected".
ok markus@
-rw-r--r-- | usr.bin/ssh/dispatch.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/dispatch.c b/usr.bin/ssh/dispatch.c index 3f6eb8cdd2d..cbf0ff23e5c 100644 --- a/usr.bin/ssh/dispatch.c +++ b/usr.bin/ssh/dispatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dispatch.c,v 1.25 2015/01/30 01:13:33 djm Exp $ */ +/* $OpenBSD: dispatch.c,v 1.26 2015/02/12 20:34:19 dtucker Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -145,6 +145,10 @@ ssh_dispatch_run_fatal(struct ssh *ssh, int mode, volatile sig_atomic_t *done, logit("Connection to %.200s timed out while " "waiting to read", ssh_remote_ipaddr(ssh)); cleanup_exit(255); + case SSH_ERR_DISCONNECTED: + logit("Disconnected from %.200s", + ssh_remote_ipaddr(ssh)); + cleanup_exit(255); default: fatal("%s: %s", __func__, ssh_err(r)); } |