diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-11-18 10:13:58 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-11-18 10:13:58 +0100 |
commit | a1bd091b4f5ed19e11816bbd87ef4c96f3342ac3 (patch) | |
tree | 0eee43bffbdfd335cd12bc3c9183d51b7abab545 | |
parent | 764981b76a509ed4b77bfcf4213e84202233c808 (diff) | |
download | cssh-a1bd091b4f5ed19e11816bbd87ef4c96f3342ac3.tar.gz cssh-a1bd091b4f5ed19e11816bbd87ef4c96f3342ac3.tar.bz2 |
fixed connection shifter (wrong condition)
-rw-r--r-- | src/cssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -982,7 +982,7 @@ int main( int argc, char *argv[] ) // rearange session data in case we ignore errornous hosts unsigned int j = 0; for( unsigned int i = 0; i < nof_sessions; i++ ) { - if( connection_state[i] != CSSH_CONNECTION_STATE_CONNECTED ) { + if( connection_state[i] == CSSH_CONNECTION_STATE_CONNECTED ) { if( i != j ) { connection_state[j] = connection_state[i]; auth_state[j] = auth_state[i]; |