Mercurial > dropbear
diff netio.c @ 1298:251c5f7a6e96
make sure socket is of the right domain
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 19 Jun 2016 20:38:38 +0800 |
parents | 750ec4ec4cbe |
children | 2c9dac2d6707 |
line wrap: on
line diff
--- 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; }