1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

socket: Use more portable PF_UNIX instead of PF_LOCAL

Signed-off-by: Tilo Eckert <tilo.eckert@flam.de>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Tilo Eckert
2019-02-18 12:44:05 +01:00
committed by Andreas Schneider
parent 17df34da96
commit eb032e0dec

View File

@@ -838,7 +838,7 @@ int ssh_socket_connect_proxycommand(ssh_socket s, const char *command){
return SSH_ERROR;
}
rc = socketpair(PF_LOCAL, SOCK_STREAM, 0, pair);
rc = socketpair(PF_UNIX, SOCK_STREAM, 0, pair);
if (rc < 0) {
return SSH_ERROR;
}