diff --git a/netio.c b/netio.c index 046b5f41d2adb0e7df413691e3bd4b9500cb772c..2e57534487f7e38e76bbe6942234773acdff5522 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; }