aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-27 14:21:27 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-27 14:21:27 +0300
commita83e5f18a2b6d9dc3196045867bcd842cfea3323 (patch)
tree5272d1159063abc10b92033f0a914aa2d36d06d2 /src/util.c
parentfdccb337ed73f14b204721cf464ca03a7eca49b6 (diff)
downloadrspamd-a83e5f18a2b6d9dc3196045867bcd842cfea3323.tar.gz
rspamd-a83e5f18a2b6d9dc3196045867bcd842cfea3323.zip
* Add ability to build rspamd without perl support
* Fix creating of uinx socket * Improve some build issues
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 64f8910e6..bedb4114d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -172,10 +172,10 @@ make_unix_socket (const char *path, struct sockaddr_un *addr, gboolean is_server
}
if (is_server) {
setsockopt (fd, SOL_SOCKET, SO_REUSEADDR, (const void *) &on, sizeof(int));
- r = bind (fd, (struct sockaddr *)&sin, sizeof (struct sockaddr_in));
+ r = bind (fd, (struct sockaddr *)addr, sizeof (struct sockaddr_in));
}
else {
- r = connect (fd, (struct sockaddr *)&sin, sizeof (struct sockaddr_in));
+ r = connect (fd, (struct sockaddr *)addr, sizeof (struct sockaddr_in));
}
if (r == -1) {