# HG changeset patch # User Matt Johnston # Date 1466339918 -28800 # Node ID 251c5f7a6e96c0b7770d9592013c2d31600b2496 # Parent 5abbecdecba4425e8bb9482f0ca05d87054a344f make sure socket is of the right domain diff -r 5abbecdecba4 -r 251c5f7a6e96 netio.c --- a/netio.c Wed May 04 17:59:34 2016 +0200 +++ 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; }