commit | dd19d73db4e5d6bd8a28120629644ee01824d450 | [log] [tgz] |
---|---|---|
author | Matt Johnston <matt@ucc.asn.au> | Sun Jun 19 20:38:38 2016 +0800 |
committer | Matt Johnston <matt@ucc.asn.au> | Sun Jun 19 20:38:38 2016 +0800 |
tree | 6252ab54dc10ec1ef6077ab0d3f7cc5baa9db2de | |
parent | 8c7ebc02a05d2872a35e276ee8243f1631087bbd [diff] |
make sure socket is of the right domain
diff --git a/netio.c b/netio.c index 046b5f4..2e57534 100644 --- a/netio.c +++ b/netio.c
@@ -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; }