channels1: Add missing request_state and set it to accepted.

This fixes bug #88.
This commit is contained in:
Andreas Schneider
2012-10-22 18:05:06 +02:00
parent 26579b2231
commit ae218d0d15

View File

@@ -62,6 +62,7 @@ int channel_open_session1(ssh_channel chan) {
return -1;
}
session->exec_channel_opened = 1;
chan->request_state = SSH_CHANNEL_REQ_STATE_ACCEPTED;
chan->state = SSH_CHANNEL_STATE_OPEN;
chan->local_maxpacket = 32000;
chan->local_window = 64000;