1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

Channels: fix the "server specified invalid channel" bug

Resolved by introducing a flag entry in channel structure.
This commit is contained in:
Aris Adamantiadis
2011-08-28 14:27:24 +03:00
parent 7d347aa6f4
commit ef5701a535
3 changed files with 41 additions and 11 deletions

View File

@@ -189,7 +189,7 @@ void ssh_free(ssh_session session) {
}
/* delete all channels */
while ((it=ssh_list_get_iterator(session->channels)) != NULL) {
ssh_channel_free(ssh_iterator_value(ssh_channel,it));
ssh_channel_do_free(ssh_iterator_value(ssh_channel,it));
ssh_list_remove(session->channels, it);
}
ssh_list_free(session->channels);