summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cssh.c b/src/cssh.c
index 0701c99..2cdebee 100644
--- a/src/cssh.c
+++ b/src/cssh.c
@@ -447,7 +447,7 @@ static void cleanup_sessions( ssh_session **session, ssh_data_t **ssh_data, scp_
if( verbose ) {
fprintf( stderr, "Disconnecting from '%s', port %d..\n", host[i], port[i] );
}
- if( *ssh_data != NULL ) {
+ if( ssh_data != NULL ) {
ssh_channel *channel = &(*ssh_data)[i].channel;
if( ssh_channel_is_open( *channel ) ) {
ssh_channel_send_eof( *channel );