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 e164b236c6
commit a4ffaff550

View File

@@ -68,6 +68,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;