Loading lib/ssh-libssh.c +11 −11 Original line number Diff line number Diff line Loading @@ -497,7 +497,7 @@ restart: if(rc < 0) return SSH_ERROR; /* fallthrough */ /* FALLTHROUGH */ case 1: sshc->kbd_state = 1; Loading Loading @@ -572,7 +572,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) ssh_set_blocking(sshc->ssh_session, 0); state(conn, SSH_S_STARTUP); /* fall-through */ /* FALLTHROUGH */ case SSH_S_STARTUP: rc = ssh_connect(sshc->ssh_session); Loading @@ -586,7 +586,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) state(conn, SSH_HOSTKEY); /* fall-through */ /* FALLTHROUGH */ case SSH_HOSTKEY: rc = myssh_is_known(conn); Loading @@ -595,7 +595,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) } state(conn, SSH_AUTHLIST); /* fall through */ /* FALLTHROUGH */ case SSH_AUTHLIST:{ sshc->authed = FALSE; Loading Loading @@ -759,7 +759,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) MOVE_TO_ERROR_STATE(CURLE_LOGIN_DENIED); } state(conn, SSH_AUTH_PASS); /* fall through */ /* FALLTHROUGH */ case SSH_AUTH_PASS: rc = ssh_userauth_password(sshc->ssh_session, NULL, conn->passwd); Loading Loading @@ -823,7 +823,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) break; } state(conn, SSH_SFTP_REALPATH); /* fall through */ /* FALLTHROUGH */ case SSH_SFTP_REALPATH: /* * Get the "home" directory Loading Loading @@ -1419,7 +1419,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) sshc->readdir_longentry = NULL; state(conn, SSH_SFTP_READDIR_BOTTOM); /* fall through */ /* FALLTHROUGH */ case SSH_SFTP_READDIR_BOTTOM: sshc->readdir_currLen += snprintf(sshc->readdir_line + sshc->readdir_currLen, Loading Loading @@ -1751,7 +1751,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) MOVE_TO_ERROR_STATE(CURLE_COULDNT_CONNECT); } state(conn, SSH_SCP_DOWNLOAD); /* fall through */ /* FALLTHROUGH */ case SSH_SCP_DOWNLOAD:{ curl_off_t bytecount; Loading Loading @@ -1816,7 +1816,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) ssh_set_blocking(sshc->ssh_session, 0); state(conn, SSH_SESSION_DISCONNECT); /* fall through */ /* FALLTHROUGH */ case SSH_SESSION_DISCONNECT: /* during weird times when we've been prematurely aborted, the channel Loading @@ -1833,7 +1833,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) conn->data->state.most_recent_ftp_entrypath = NULL; state(conn, SSH_SESSION_FREE); /* fall through */ /* FALLTHROUGH */ case SSH_SESSION_FREE: if(sshc->ssh_session) { ssh_free(sshc->ssh_session); Loading Loading @@ -2448,7 +2448,7 @@ static ssize_t sftp_recv(struct connectdata *conn, int sockindex, return -1; } /* fall-through */ /* FALLTHROUGH */ case 1: conn->proto.sshc.sftp_recv_state = 1; Loading Loading
lib/ssh-libssh.c +11 −11 Original line number Diff line number Diff line Loading @@ -497,7 +497,7 @@ restart: if(rc < 0) return SSH_ERROR; /* fallthrough */ /* FALLTHROUGH */ case 1: sshc->kbd_state = 1; Loading Loading @@ -572,7 +572,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) ssh_set_blocking(sshc->ssh_session, 0); state(conn, SSH_S_STARTUP); /* fall-through */ /* FALLTHROUGH */ case SSH_S_STARTUP: rc = ssh_connect(sshc->ssh_session); Loading @@ -586,7 +586,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) state(conn, SSH_HOSTKEY); /* fall-through */ /* FALLTHROUGH */ case SSH_HOSTKEY: rc = myssh_is_known(conn); Loading @@ -595,7 +595,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) } state(conn, SSH_AUTHLIST); /* fall through */ /* FALLTHROUGH */ case SSH_AUTHLIST:{ sshc->authed = FALSE; Loading Loading @@ -759,7 +759,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) MOVE_TO_ERROR_STATE(CURLE_LOGIN_DENIED); } state(conn, SSH_AUTH_PASS); /* fall through */ /* FALLTHROUGH */ case SSH_AUTH_PASS: rc = ssh_userauth_password(sshc->ssh_session, NULL, conn->passwd); Loading Loading @@ -823,7 +823,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) break; } state(conn, SSH_SFTP_REALPATH); /* fall through */ /* FALLTHROUGH */ case SSH_SFTP_REALPATH: /* * Get the "home" directory Loading Loading @@ -1419,7 +1419,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) sshc->readdir_longentry = NULL; state(conn, SSH_SFTP_READDIR_BOTTOM); /* fall through */ /* FALLTHROUGH */ case SSH_SFTP_READDIR_BOTTOM: sshc->readdir_currLen += snprintf(sshc->readdir_line + sshc->readdir_currLen, Loading Loading @@ -1751,7 +1751,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) MOVE_TO_ERROR_STATE(CURLE_COULDNT_CONNECT); } state(conn, SSH_SCP_DOWNLOAD); /* fall through */ /* FALLTHROUGH */ case SSH_SCP_DOWNLOAD:{ curl_off_t bytecount; Loading Loading @@ -1816,7 +1816,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) ssh_set_blocking(sshc->ssh_session, 0); state(conn, SSH_SESSION_DISCONNECT); /* fall through */ /* FALLTHROUGH */ case SSH_SESSION_DISCONNECT: /* during weird times when we've been prematurely aborted, the channel Loading @@ -1833,7 +1833,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block) conn->data->state.most_recent_ftp_entrypath = NULL; state(conn, SSH_SESSION_FREE); /* fall through */ /* FALLTHROUGH */ case SSH_SESSION_FREE: if(sshc->ssh_session) { ssh_free(sshc->ssh_session); Loading Loading @@ -2448,7 +2448,7 @@ static ssize_t sftp_recv(struct connectdata *conn, int sockindex, return -1; } /* fall-through */ /* FALLTHROUGH */ case 1: conn->proto.sshc.sftp_recv_state = 1; Loading