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
b7822050
Commit
b7822050
authored
Nov 11, 2016
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3993 from alexcrichton/fix-fault
parents
5fe5557e
5ca75fd5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/curl_stream.c
+6
-0
No files found.
src/curl_stream.c
View file @
b7822050
...
...
@@ -121,6 +121,11 @@ static int curls_connect(git_stream *stream)
return
seterr_curl
(
s
);
}
if
(
sockextr
==
-
1
)
{
giterr_set
(
GITERR_NET
,
"curl socket is no longer valid"
);
return
-
1
;
}
s
->
socket
=
sockextr
;
if
(
s
->
parent
.
encrypted
&&
failed_cert
)
...
...
@@ -198,6 +203,7 @@ static int wait_for(curl_socket_t fd, bool reading)
FD_ZERO
(
&
outfd
);
FD_ZERO
(
&
errfd
);
assert
(
fd
>=
0
);
FD_SET
(
fd
,
&
errfd
);
if
(
reading
)
FD_SET
(
fd
,
&
infd
);
...
...
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