]> source.dussan.org Git - rspamd.git/commitdiff
Start on system with no IPv6 support.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 29 Sep 2014 23:51:11 +0000 (00:51 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 29 Sep 2014 23:51:11 +0000 (00:51 +0100)
src/libserver/cfg_utils.c

index 0a9fdc9ba55f48a1e086c56de7c26b97b3251ca8..4d2b868803159884a526171135f8028753f73d2a 100644 (file)
@@ -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 ((r= 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);
                }