Loading lib/ssh.c +3 −0 Original line number Original line Diff line number Diff line Loading @@ -985,6 +985,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) sshc->actualcode = CURLE_OUT_OF_MEMORY; sshc->actualcode = CURLE_OUT_OF_MEMORY; break; break; } } conn->data->state.most_recent_ftp_entrypath = sshc->homedir; } } else { else { /* Return the error type */ /* Return the error type */ Loading Loading @@ -2072,6 +2073,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) Curl_safefree(sshc->homedir); Curl_safefree(sshc->homedir); sshc->homedir = NULL; sshc->homedir = NULL; conn->data->state.most_recent_ftp_entrypath = NULL; state(conn, SSH_SESSION_DISCONNECT); state(conn, SSH_SESSION_DISCONNECT); break; break; Loading Loading @@ -2290,6 +2292,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) Curl_safefree(sshc->homedir); Curl_safefree(sshc->homedir); sshc->homedir = NULL; sshc->homedir = NULL; conn->data->state.most_recent_ftp_entrypath = NULL; state(conn, SSH_SESSION_FREE); state(conn, SSH_SESSION_FREE); break; break; Loading Loading
lib/ssh.c +3 −0 Original line number Original line Diff line number Diff line Loading @@ -985,6 +985,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) sshc->actualcode = CURLE_OUT_OF_MEMORY; sshc->actualcode = CURLE_OUT_OF_MEMORY; break; break; } } conn->data->state.most_recent_ftp_entrypath = sshc->homedir; } } else { else { /* Return the error type */ /* Return the error type */ Loading Loading @@ -2072,6 +2073,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) Curl_safefree(sshc->homedir); Curl_safefree(sshc->homedir); sshc->homedir = NULL; sshc->homedir = NULL; conn->data->state.most_recent_ftp_entrypath = NULL; state(conn, SSH_SESSION_DISCONNECT); state(conn, SSH_SESSION_DISCONNECT); break; break; Loading Loading @@ -2290,6 +2292,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) Curl_safefree(sshc->homedir); Curl_safefree(sshc->homedir); sshc->homedir = NULL; sshc->homedir = NULL; conn->data->state.most_recent_ftp_entrypath = NULL; state(conn, SSH_SESSION_FREE); state(conn, SSH_SESSION_FREE); break; break; Loading