aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-10-22 18:05:06 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-10-22 18:05:06 +0200
commita4ffaff550c5a5987fcf7fb5c5d2aab493428505 (patch)
treee1209ec3e3733b40ba88160c09628d1cd09a8460 /src
parente164b236c654728a792b3dae8bc3e57647f1d090 (diff)
downloadlibssh-a4ffaff550c5a5987fcf7fb5c5d2aab493428505.tar.gz
libssh-a4ffaff550c5a5987fcf7fb5c5d2aab493428505.tar.xz
libssh-a4ffaff550c5a5987fcf7fb5c5d2aab493428505.zip
channels1: Add missing request_state and set it to accepted.
This fixes bug #88.
Diffstat (limited to 'src')
-rw-r--r--src/channels1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/channels1.c b/src/channels1.c
index 583755a8..5d0158d2 100644
--- a/src/channels1.c
+++ b/src/channels1.c
@@ -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;