aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-24 23:50:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-24 23:50:42 +0000
commit96710e16c6122ab216d2348a4d6f60ed908ba8e7 (patch)
tree4c133d361aa124c9cc3e26051ef3c015d6005518 /src/libserver
parenta7e9c6c403bde957b8f07895bb2f7f2b13135fb0 (diff)
downloadrspamd-96710e16c6122ab216d2348a4d6f60ed908ba8e7.tar.gz
rspamd-96710e16c6122ab216d2348a4d6f60ed908ba8e7.zip
Fix names for parsed addresses
Diffstat (limited to 'src/libserver')
-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 475850f95..b6b44036e 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -76,10 +76,10 @@ rspamd_parse_bind_line (struct rspamd_config *cfg,
cnf->cnt = 1024;
- if (strcmp (str, "systemd") == 0) {
+ if (g_ascii_strncasecmp (str, "systemd:", sizeof ("systemd:") - 1) == 0) {
/* The actual socket will be passed by systemd environment */
cnf->is_systemd = TRUE;
- cnf->cnt = strtoul (str, &err, 10);
+ cnf->cnt = strtoul (str + sizeof ("systemd:") - 1, &err, 10);
cnf->addrs = NULL;
if (err == NULL || *err == '\0') {