summaryrefslogtreecommitdiffstats
path: root/src/rspamadm
diff options
context:
space:
mode:
Diffstat (limited to 'src/rspamadm')
-rw-r--r--src/rspamadm/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c
index cdc504456..2f73d09ca 100644
--- a/src/rspamadm/control.c
+++ b/src/rspamadm/control.c
@@ -220,7 +220,7 @@ rspamadm_control (gint argc, gchar **argv, const struct rspamadm_command *_cmd)
exit (1);
}
- if (!rspamd_parse_inet_address (&addr, control_path, 0)) {
+ if (!rspamd_parse_inet_address (&addr, control_path, strlen (control_path))) {
rspamd_fprintf (stderr, "bad control path: %s\n", control_path);
exit (1);
}