diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-26 18:15:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-26 18:15:23 +0100 |
commit | 437cef075caec19a8150e0c4c04ef64a1a5e9d94 (patch) | |
tree | 552428ca46dc5e20f436be29981f282d8c1e83e0 /src/rspamadm | |
parent | 44f911a00655f5c8caa103f15afa155c25ac25a0 (diff) | |
download | rspamd-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.c | 4 |
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); } |