summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-03-01 07:59:24 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-03-01 07:59:24 +0100
commit6753ffb46d7eeda1d4d6939257397ce9306e4946 (patch)
tree0a5a52e1dd6e9b84d8f588f2568b43d640ec9009
parente423e3c888390450c3f4c7881f8f83f9f58904b0 (diff)
downloadcssh-6753ffb46d7eeda1d4d6939257397ce9306e4946.tar.gz
cssh-6753ffb46d7eeda1d4d6939257397ce9306e4946.tar.bz2
fixed wrong check for non-existing ssh_data if a host is unreachable
-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 );