Commit 08bf80fa by Etienne Samson

Tab indent.

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