aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-26 12:07:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-26 12:07:29 +0100
commit66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b (patch)
tree45dc9e90027450559bebecfe74c6e6b74d5d6524 /src/rspamadm
parentf648223e11b724cb485fabd8d344fec3b3e382c5 (diff)
downloadrspamd-66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b.tar.gz
rspamd-66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b.zip
[Fix] Do not call implicit strlen to avoid issues
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);
}