Commit 08bf80fa by Etienne Samson

Tab indent.

parent 367c1903
...@@ -272,8 +272,7 @@ static int _git_ssh_authenticate_session( ...@@ -272,8 +272,7 @@ static int _git_ssh_authenticate_session(
return rc; return rc;
} }
static int _git_ssh_session_create static int _git_ssh_session_create(
(
LIBSSH2_SESSION** session, LIBSSH2_SESSION** session,
gitno_socket socket gitno_socket socket
) )
...@@ -291,9 +290,8 @@ static int _git_ssh_session_create ...@@ -291,9 +290,8 @@ static int _git_ssh_session_create
rc = libssh2_session_startup(s, socket.socket); rc = libssh2_session_startup(s, socket.socket);
} while (LIBSSH2_ERROR_EAGAIN == rc || LIBSSH2_ERROR_TIMEOUT == rc); } while (LIBSSH2_ERROR_EAGAIN == rc || LIBSSH2_ERROR_TIMEOUT == rc);
if (0 != rc) { if (0 != rc)
goto on_error; goto on_error;
}
libssh2_session_set_blocking(s, 1); libssh2_session_set_blocking(s, 1);
...@@ -392,6 +390,10 @@ static int _git_ssh_setup_conn( ...@@ -392,6 +390,10 @@ static int _git_ssh_setup_conn(
return 0; return 0;
on_error: on_error:
s->session = NULL;
s->channel = NULL;
t->current_stream = NULL;
if (*stream) if (*stream)
ssh_stream_free(*stream); ssh_stream_free(*stream);
......
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