summaryrefslogtreecommitdiff
path: root/sysdep/unix
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-05-11 23:33:31 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-05-11 23:33:31 +0200
commit93d2d0912e95866c39283842f40ca08f4a0bbba1 (patch)
tree5ce48fa844288edf4b80c7aff815a879bf8385b2 /sysdep/unix
parentc7c4020384fe563eda2d89cb435449ce963d7c92 (diff)
WIP test sizeof sockaddr_un
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 8e6ea5f8..2f327925 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_family_t) + namelen) < 0)
+ if (connect(fd, (struct sockaddr *) &sa, sizeof(sa) < 0))
return -1;
s->fd = fd;