Skip to content
Snippets Groups Projects
Commit dd19d73d authored by Matt Johnston's avatar Matt Johnston
Browse files

make sure socket is of the right domain

parent 8c7ebc02
No related merge requests found
...@@ -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_iter->ai_family, c->res_iter->ai_socktype, c->res_iter->ai_protocol); c->sock = socket(r->ai_family, r->ai_socktype, r->ai_protocol);
if (c->sock < 0) { if (c->sock < 0) {
continue; continue;
} }
......
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