diff options
author | Till Wimmer <g4-lisz@tonarchiv.ch> | 2019-01-29 12:01:31 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-01-30 09:24:26 +0100 |
commit | 16a52a836238b4fd82a194ae7a275a39ecc79564 (patch) | |
tree | 38be57fcb978b1ad3f55e60919ed595da1aabfb1 /src | |
parent | 5bc7432b1005ee8b0bf198a51b5cca12f933827d (diff) | |
download | libssh-16a52a836238b4fd82a194ae7a275a39ecc79564.tar.gz libssh-16a52a836238b4fd82a194ae7a275a39ecc79564.tar.xz libssh-16a52a836238b4fd82a194ae7a275a39ecc79564.zip |
connector: Don't NULL connector (in|out) channels on event remove
Signed-off-by: Till Wimmer <g4-lisz@tonarchiv.ch>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/connector.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/connector.c b/src/connector.c index c4f6af54..0062785c 100644 --- a/src/connector.c +++ b/src/connector.c @@ -641,14 +641,12 @@ int ssh_connector_remove_event(ssh_connector connector) { session = ssh_channel_get_session(connector->in_channel); ssh_event_remove_session(connector->event, session); - connector->in_channel = NULL; } if (connector->out_channel != NULL) { session = ssh_channel_get_session(connector->out_channel); ssh_event_remove_session(connector->event, session); - connector->out_channel = NULL; } connector->event = NULL; |