summaryrefslogtreecommitdiff
path: root/sysdep/unix
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-05-12 00:00:57 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-05-12 00:00:57 +0200
commit08ef65498f3156475bbced2523ec063b6290b600 (patch)
treed9654e6c48218e46a92cadd95927c9e3a10f4013 /sysdep/unix
parentc56c7964f06cf480cacb6404bbdb51c78e616b22 (diff)
WIP unix socket debug 4
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index f8a727fa..14bf99fe 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -1535,7 +1535,7 @@ sk_connect_unix(sock *s, char *name, socklen_t namelen)
sa.sun_family = AF_UNIX;
memcpy(sa.sun_path, name, namelen);
- if (connect(fd, (struct sockaddr *) &sa, sizeof(sa.un_family) + namelen) < 0)
+ if (connect(fd, (struct sockaddr *) &sa, sizeof(sa.sun_family) + namelen) < 0)
return -1;
s->fd = fd;