From 45bbea1dda1ef84794a29e87ed1127f8cb728f11 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 30 Sep 2014 00:51:11 +0100 Subject: [PATCH] Start on system with no IPv6 support. --- src/libserver/cfg_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 0a9fdc9ba..4d2b86880 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -234,7 +234,7 @@ rspamd_parse_bind_line (struct rspamd_config *cfg, { struct rspamd_worker_bind_conf *cnf; gchar **tokens, *tmp, *err; - gboolean ret = TRUE; + gboolean ret = TRUE, rc; if (str == NULL) { return FALSE; @@ -272,7 +272,7 @@ rspamd_parse_bind_line (struct rspamd_config *cfg, cnf->bind_host = rspamd_mempool_strdup (cfg->cfg_pool, str); cnf->ai = AF_INET6; tokens[0] = "*v6"; - if ((ret &= parse_host_port_priority_strv (cfg->cfg_pool, tokens, + if ((rc = parse_host_port_priority_strv (cfg->cfg_pool, tokens, &cnf->bind_host, &cnf->bind_port, NULL, DEFAULT_BIND_PORT))) { LL_PREPEND (cf->bind_conf, cnf); } -- 2.39.5