# HG changeset patch # User Matt Johnston # Date 1466339918 -28800 # Node ID 3b624ad2dc5e051b99e121427238136569a5c9aa # Parent 8678e2cc1e5370d62f0d17a1809de3f428aeb7e7 make sure socket is of the right domain diff -r 8678e2cc1e53 -r 3b624ad2dc5e netio.c --- a/netio.c Tue Jul 12 23:33:15 2016 +0800 +++ b/netio.c Sun Jun 19 20:38:38 2016 +0800 @@ -61,7 +61,7 @@ { 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) { continue; }