Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2015-10-11 02:01:14 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -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;