mirror of
https://git.proxmox.com/git/libgit2
synced 2025-10-15 21:48:20 +00:00
Tab indent.
This commit is contained in:
parent
367c1903e9
commit
08bf80fa2b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user