Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matt Johnston
dropbear
Commits
dd19d73d
Commit
dd19d73d
authored
Jun 19, 2016
by
Matt Johnston
Browse files
make sure socket is of the right domain
parent
8c7ebc02
Changes
1
Hide whitespace changes
Inline
Side-by-side
netio.c
View file @
dd19d73d
...
@@ -61,7 +61,7 @@ static void connect_try_next(struct dropbear_progress_connection *c) {
...
@@ -61,7 +61,7 @@ static void connect_try_next(struct dropbear_progress_connection *c) {
{
{
dropbear_assert
(
c
->
sock
==
-
1
);
dropbear_assert
(
c
->
sock
==
-
1
);
c
->
sock
=
socket
(
c
->
res_ite
r
->
ai_family
,
c
->
res_ite
r
->
ai_socktype
,
c
->
res_ite
r
->
ai_protocol
);
c
->
sock
=
socket
(
r
->
ai_family
,
r
->
ai_socktype
,
r
->
ai_protocol
);
if
(
c
->
sock
<
0
)
{
if
(
c
->
sock
<
0
)
{
continue
;
continue
;
}
}
...
...
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