connector: ensure channel callbacks are removed

Authored by albaguirre on Feb 26 2018, 5:16 PM.

Description

connector: ensure channel callbacks are removed

ssh_connector_free fails to remove the in/out channel callbacks
as ssh_connector_remove_event sets the in/out channel variables
to NULL.

Have ssh_connector_free, remove the channel callbacks first before
invoking ssh_connector_remove_event.

Signed-off-by: Alberto Aguirre <albaguirre@gmail.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnMar 7 2018, 3:48 PM
Parents
rLIBSSH25f31760aacd: connector: Check for POLLHUP on in_fd
Branches
Unknown
Tags
Unknown