aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-26 18:15:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-26 18:15:23 +0100
commit437cef075caec19a8150e0c4c04ef64a1a5e9d94 (patch)
tree552428ca46dc5e20f436be29981f282d8c1e83e0 /src/libserver/cfg_utils.c
parent44f911a00655f5c8caa103f15afa155c25ac25a0 (diff)
downloadrspamd-437cef075caec19a8150e0c4c04ef64a1a5e9d94.tar.gz
rspamd-437cef075caec19a8150e0c4c04ef64a1a5e9d94.zip
[Minor] Rework rspamd_parse_host_port_priority function result
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index d6dc95527..4348f7940 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -106,8 +106,8 @@ rspamd_parse_bind_line (struct rspamd_config *cfg,
}
}
else {
- if (!rspamd_parse_host_port_priority (str, &cnf->addrs,
- NULL, &cnf->name, DEFAULT_BIND_PORT, cfg->cfg_pool)) {
+ if (rspamd_parse_host_port_priority (str, &cnf->addrs,
+ NULL, &cnf->name, DEFAULT_BIND_PORT, cfg->cfg_pool) == RSPAMD_PARSE_ADDR_FAIL) {
msg_err_config ("cannot parse bind line: %s", str);
ret = FALSE;
}