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

Collapse All | Expand All

(-)openssh-4.3p2/clientloop.c (+3 lines)
Lines 583-591 Link Here
583
		len = read(connection_in, buf, sizeof(buf));
583
		len = read(connection_in, buf, sizeof(buf));
584
		if (len == 0) {
584
		if (len == 0) {
585
			/* Received EOF.  The remote host has closed the connection. */
585
			/* Received EOF.  The remote host has closed the connection. */
586
/* This message duplicates the one already in client_loop(). */
587
#if 0 
586
			snprintf(buf, sizeof buf, "Connection to %.300s closed by remote host.\r\n",
588
			snprintf(buf, sizeof buf, "Connection to %.300s closed by remote host.\r\n",
587
				 host);
589
				 host);
588
			buffer_append(&stderr_buffer, buf, strlen(buf));
590
			buffer_append(&stderr_buffer, buf, strlen(buf));
591
#endif
589
			quit_pending = 1;
592
			quit_pending = 1;
590
			return;
593
			return;
591
		}
594
		}
(-)openssh-4.3p2/session.c (+2 lines)
Lines 2192-2197 Link Here
2192
	 */
2192
	 */
2193
	if (c->ostate != CHAN_OUTPUT_CLOSED)
2193
	if (c->ostate != CHAN_OUTPUT_CLOSED)
2194
		chan_write_failed(c);
2194
		chan_write_failed(c);
2195
	if (s->ttyfd != -1 && c->istate == CHAN_INPUT_OPEN)
2196
		chan_read_failed(c);
2195
}
2197
}
2196
2198
2197
void
2199
void

Return to bug 52