diff --git a/netio.c b/netio.c index 1564f2f8c8ffc5d027980aa1e387a7d67104eeac..16a0d3acc396ae9635b4cde9057f03fb1b380782 100644 --- a/netio.c +++ b/netio.c @@ -165,7 +165,7 @@ struct dropbear_progress_connection *connect_remote(const char* remotehost, cons memset(&hints, 0, sizeof(hints)); hints.ai_socktype = SOCK_STREAM; - hints.ai_family = PF_UNSPEC; + hints.ai_family = AF_UNSPEC; err = getaddrinfo(remotehost, remoteport, &hints, &c->res); if (err) {