1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-13 13:05:03 -05:00

As has been pointed out, err_msg should not be freed here. The actual

issue is in libssh2 and not freeing a dynamic error message during cleanup.
This commit is contained in:
James Housley 2007-07-18 18:31:34 +00:00
parent 89d119646d
commit ca1356702a

View File

@ -1643,7 +1643,6 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
&err_msg, NULL, 0); &err_msg, NULL, 0);
err = libssh2_session_error_to_CURLE(ssh_err); err = libssh2_session_error_to_CURLE(ssh_err);
failf(conn->data, "%s", err_msg); failf(conn->data, "%s", err_msg);
Curl_safefree(err_msg);
state(conn, SSH_SCP_CHANNEL_FREE); state(conn, SSH_SCP_CHANNEL_FREE);
sshc->actualCode = err; sshc->actualCode = err;
break; break;
@ -1686,7 +1685,6 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
&err_msg, NULL, 0); &err_msg, NULL, 0);
err = libssh2_session_error_to_CURLE(ssh_err); err = libssh2_session_error_to_CURLE(ssh_err);
failf(conn->data, "%s", err_msg); failf(conn->data, "%s", err_msg);
Curl_safefree(err_msg);
state(conn, SSH_SCP_CHANNEL_FREE); state(conn, SSH_SCP_CHANNEL_FREE);
sshc->actualCode = err; sshc->actualCode = err;
break; break;