mirror of
https://github.com/clearml/dropbear
synced 2025-05-20 03:07:47 +00:00
Should be AF_UNSPEC not PF_UNSPEC
This commit is contained in:
parent
9754fdd995
commit
fee32054e6
2
netio.c
2
netio.c
@ -165,7 +165,7 @@ struct dropbear_progress_connection *connect_remote(const char* remotehost, cons
|
|||||||
|
|
||||||
memset(&hints, 0, sizeof(hints));
|
memset(&hints, 0, sizeof(hints));
|
||||||
hints.ai_socktype = SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
hints.ai_family = PF_UNSPEC;
|
hints.ai_family = AF_UNSPEC;
|
||||||
|
|
||||||
err = getaddrinfo(remotehost, remoteport, &hints, &c->res);
|
err = getaddrinfo(remotehost, remoteport, &hints, &c->res);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user