aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm
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/rspamadm
parent44f911a00655f5c8caa103f15afa155c25ac25a0 (diff)
downloadrspamd-437cef075caec19a8150e0c4c04ef64a1a5e9d94.tar.gz
rspamd-437cef075caec19a8150e0c4c04ef64a1a5e9d94.zip
[Minor] Rework rspamd_parse_host_port_priority function result
Diffstat (limited to 'src/rspamadm')
-rw-r--r--src/rspamadm/lua_repl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamadm/lua_repl.c b/src/rspamadm/lua_repl.c
index 59e3db02c..4cd68185d 100644
--- a/src/rspamadm/lua_repl.c
+++ b/src/rspamadm/lua_repl.c
@@ -799,8 +799,8 @@ rspamadm_lua (gint argc, gchar **argv, const struct rspamadm_command *cmd)
gint fd;
struct rspamadm_lua_repl_context *ctx;
- if (!rspamd_parse_host_port_priority (serve, &addrs, NULL, &name,
- 10000, NULL)) {
+ if (rspamd_parse_host_port_priority (serve, &addrs, NULL, &name,
+ 10000, NULL) == RSPAMD_PARSE_ADDR_FAIL) {
fprintf (stderr, "cannot listen on %s", serve);
exit (EXIT_FAILURE);
}