Commit ac72051a by Ben Straub

Fix ssh.c compile

parent 2d1feaa2
...@@ -317,7 +317,7 @@ static int _git_ssh_setup_conn( ...@@ -317,7 +317,7 @@ static int _git_ssh_setup_conn(
const char *cmd, const char *cmd,
git_smart_subtransport_stream **stream) git_smart_subtransport_stream **stream)
{ {
char *host=NULL, *port=NULL, *user=NULL, *pass=NULL; char *host=NULL, *port=NULL, *path=NULL, *user=NULL, *pass=NULL;
const char *default_port="22"; const char *default_port="22";
ssh_stream *s; ssh_stream *s;
LIBSSH2_SESSION* session=NULL; LIBSSH2_SESSION* session=NULL;
...@@ -330,7 +330,7 @@ static int _git_ssh_setup_conn( ...@@ -330,7 +330,7 @@ static int _git_ssh_setup_conn(
s = (ssh_stream *)*stream; s = (ssh_stream *)*stream;
if (!git__prefixcmp(url, prefix_ssh)) { if (!git__prefixcmp(url, prefix_ssh)) {
if (gitno_extract_url_parts(&host, &port, &user, &pass, url, default_port) < 0) if (gitno_extract_url_parts(&host, &port, &path, &user, &pass, url, default_port) < 0)
goto on_error; goto on_error;
} else { } else {
if (git_ssh_extract_url_parts(&host, &user, url) < 0) if (git_ssh_extract_url_parts(&host, &user, url) < 0)
...@@ -389,6 +389,7 @@ static int _git_ssh_setup_conn( ...@@ -389,6 +389,7 @@ static int _git_ssh_setup_conn(
t->current_stream = s; t->current_stream = s;
git__free(host); git__free(host);
git__free(port); git__free(port);
git__free(path);
git__free(user); git__free(user);
git__free(pass); git__free(pass);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment