aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTilo Eckert <tilo.eckert@flam.de>2019-02-18 12:44:05 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-02-21 10:51:25 +0100
commiteb032e0dec75381183e8a32b4278dd4ff8a9f6b9 (patch)
treea93c504a31b26f62df9ce4166e582962059feefd /src
parent17df34da9621b7c81666f9a1af98f3065627a502 (diff)
downloadlibssh-eb032e0dec75381183e8a32b4278dd4ff8a9f6b9.tar.gz
libssh-eb032e0dec75381183e8a32b4278dd4ff8a9f6b9.tar.xz
libssh-eb032e0dec75381183e8a32b4278dd4ff8a9f6b9.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index f297bcf7..e155a50a 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -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;
}