summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 4353174f8..233b93eeb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -425,12 +425,14 @@ spawn_workers (struct rspamd_main *rspamd)
cf = cur->data;
/* Create listen socket */
- listen_sock = create_listen_socket (&cf->bind_addr, cf->bind_port,
+ if (cf->type != TYPE_FUZZY) {
+ listen_sock = create_listen_socket (&cf->bind_addr, cf->bind_port,
cf->bind_family, cf->bind_host);
- if (listen_sock == -1) {
- exit(-errno);
+ if (listen_sock == -1) {
+ exit(-errno);
+ }
+ cf->listen_sock = listen_sock;
}
- cf->listen_sock = listen_sock;
for (i = 0; i < cf->count; i++) {
fork_worker (rspamd, cf);