View | Details | Raw Unified | Return to bug 2257 | Differences between
and this patch

Collapse All | Expand All

(-)dispatch.c (+8 lines)
Lines 25-30 Link Here
25
25
26
#include <sys/types.h>
26
#include <sys/types.h>
27
27
28
#include <errno.h>
28
#include <signal.h>
29
#include <signal.h>
29
#include <stdarg.h>
30
#include <stdarg.h>
30
31
Lines 149-154 ssh_dispatch_run_fatal(struct ssh *ssh, Link Here
149
			logit("Disconnected from %.200s",
150
			logit("Disconnected from %.200s",
150
			    ssh_remote_ipaddr(ssh));
151
			    ssh_remote_ipaddr(ssh));
151
			cleanup_exit(255);
152
			cleanup_exit(255);
153
		case SSH_ERR_SYSTEM_ERROR:
154
			if (errno == ECONNRESET) {
155
				logit("Connection reset by %.200s",
156
				    ssh_remote_ipaddr(ssh));
157
				cleanup_exit(255);
158
			}
159
			/* FALLTHROUGH */
152
		default:
160
		default:
153
			fatal("%s: %s", __func__, ssh_err(r));
161
			fatal("%s: %s", __func__, ssh_err(r));
154
		}
162
		}

Return to bug 2257