aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_upstream_test.c
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 /test/rspamd_upstream_test.c
parentf648223e11b724cb485fabd8d344fec3b3e382c5 (diff)
downloadrspamd-66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b.tar.gz
rspamd-66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b.zip
[Fix] Do not call implicit strlen to avoid issues
Diffstat (limited to 'test/rspamd_upstream_test.c')
-rw-r--r--test/rspamd_upstream_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rspamd_upstream_test.c b/test/rspamd_upstream_test.c
index 7813f9c22..12e478793 100644
--- a/test/rspamd_upstream_test.c
+++ b/test/rspamd_upstream_test.c
@@ -83,9 +83,9 @@ rspamd_upstream_test_func (void)
RSPAMD_UPSTREAM_PARSE_DEFAULT,
NULL));
up = rspamd_upstream_get (nls, RSPAMD_UPSTREAM_RANDOM, NULL, 0);
- rspamd_parse_inet_address (&paddr, "127.0.0.2", 0);
+ rspamd_parse_inet_address (&paddr, "127.0.0.2", strlen ("127.0.0.2"));
g_assert (rspamd_upstream_add_addr (up, paddr));
- rspamd_parse_inet_address (&paddr, "::1", 0);
+ rspamd_parse_inet_address (&paddr, "::1", strlen ("::1"));
g_assert (rspamd_upstream_add_addr (up, paddr));
/* Rewind to start */
addr = rspamd_upstream_addr_next (up);