summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2016-06-19 20:38:38 +0800
committerMatt Johnston <matt@ucc.asn.au>2016-06-19 20:38:38 +0800
commit2c73fd6fbf5687a534dfc054b927a90542674ec4 (patch)
tree70ac254985e928702d975b188dcb8943534e9881 /netio.c
parent0ee860a011c70dc5d46c904f2d54f27c08e8be86 (diff)
make sure socket is of the right domain
Diffstat (limited to 'netio.c')
-rw-r--r--netio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netio.c b/netio.c
index 6c13a00..b16ba00 100644
--- a/netio.c
+++ b/netio.c
@@ -61,7 +61,7 @@ static void connect_try_next(struct dropbear_progress_connection *c) {
{
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;
}