Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
08bf80fa
Commit
08bf80fa
authored
Jul 10, 2013
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tab indent.
parent
367c1903
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/transports/ssh.c
+6
-4
No files found.
src/transports/ssh.c
View file @
08bf80fa
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment