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

Collapse All | Expand All

(-)openssh-SNAP-20100914.orig/serverloop.c (-1 / +1 lines)
Lines 1187-1193 Link Here
1187
	} else if ((c->type == SSH_CHANNEL_LARVAL ||
1187
	} else if ((c->type == SSH_CHANNEL_LARVAL ||
1188
	    c->type == SSH_CHANNEL_OPEN) && strcmp(c->ctype, "session") == 0)
1188
	    c->type == SSH_CHANNEL_OPEN) && strcmp(c->ctype, "session") == 0)
1189
		success = session_input_channel_req(c, rtype);
1189
		success = session_input_channel_req(c, rtype);
1190
	if (reply) {
1190
	if (reply && !(c->flags & CHAN_CLOSE_SENT)) {
1191
		packet_start(success ?
1191
		packet_start(success ?
1192
		    SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FAILURE);
1192
		    SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FAILURE);
1193
		packet_put_int(c->remote_id);
1193
		packet_put_int(c->remote_id);

Return to bug 1818