diff options
author | guenther <guenther> | 2015-10-11 00:26:23 +0000 |
---|---|---|
committer | guenther <guenther> | 2015-10-11 00:26:23 +0000 |
commit | 241fd72f754388c140036eb1b826a07700f5be3b (patch) | |
tree | 741fc24a3bdd4b07ade21e464c3b68f8f0bd5120 /client.c | |
parent | 7340d5adfdc8cc6d845a373f3e0d59bfd10a45d1 (diff) | |
download | rtmux-241fd72f754388c140036eb1b826a07700f5be3b.tar.gz rtmux-241fd72f754388c140036eb1b826a07700f5be3b.tar.bz2 rtmux-241fd72f754388c140036eb1b826a07700f5be3b.zip |
Userspace doesn't need to use SUN_LEN(): connect() and bind() must accept
sizeof(struct sockaddr_un), so do the simple, portable thing
ok beck@ deraadt@
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -119,7 +119,7 @@ retry: fatal("socket failed"); log_debug("trying connect"); - if (connect(fd, (struct sockaddr *) &sa, SUN_LEN(&sa)) == -1) { + if (connect(fd, (struct sockaddr *) &sa, sizeof(sa)) == -1) { log_debug("connect failed: %s", strerror(errno)); if (errno != ECONNREFUSED && errno != ENOENT) goto failed; |