aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-10-18 17:56:51 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-10-18 17:56:51 +0300
commit89c8b90f8e52f9274996ffb6a2b0dc1214ea1010 (patch)
treee6562bafa220d38c502fdfb54091d6a542e1cce2 /src/main.c
parenta761bb36a4f5d6a1f229c465c4a57fe05637e278 (diff)
downloadrspamd-89c8b90f8e52f9274996ffb6a2b0dc1214ea1010.tar.gz
rspamd-89c8b90f8e52f9274996ffb6a2b0dc1214ea1010.zip
Add universal utility function for creating stream sockets.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 25e9dd562..e470a1e8b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -473,7 +473,7 @@ create_listen_socket (struct in_addr *addr, gint port, gint family, gchar *path)
}
else {
un_addr = (struct sockaddr_un *)alloca (sizeof (struct sockaddr_un));
- if (!un_addr || (listen_sock = make_unix_socket (path, un_addr, TRUE)) == -1) {
+ if (!un_addr || (listen_sock = make_unix_socket (path, un_addr, TRUE, TRUE)) == -1) {
msg_err ("cannot create unix listen socket. %s", strerror (errno));
}
}