Should be AF_UNSPEC not PF_UNSPEC

This commit is contained in:
Matt Johnston 2015-04-17 20:59:32 +08:00
parent 9754fdd995
commit fee32054e6

View File

@ -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) {