diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-26 12:07:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-26 12:07:29 +0100 |
commit | 66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b (patch) | |
tree | 45dc9e90027450559bebecfe74c6e6b74d5d6524 /src/libserver/cfg_rcl.c | |
parent | f648223e11b724cb485fabd8d344fec3b3e382c5 (diff) | |
download | rspamd-66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b.tar.gz rspamd-66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b.zip |
[Fix] Do not call implicit strlen to avoid issues
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r-- | src/libserver/cfg_rcl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 86d674c08..04bd9eefc 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -3260,7 +3260,7 @@ rspamd_rcl_parse_struct_addr (rspamd_mempool_t *pool, if (ucl_object_type (obj) == UCL_STRING) { val = ucl_object_tostring (obj); - if (!rspamd_parse_inet_address (target, val, 0)) { + if (!rspamd_parse_inet_address (target, val, strlen (val))) { g_set_error (err, CFG_RCL_ERROR, EINVAL, |