aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-13 15:17:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-13 15:17:45 +0100
commit9370ea45e1a9b745cec61cd0e90389ee37f4853a (patch)
treed70d4da3d8bfa5e3dd5d0ac99fa6a2ad63ef5c0c /test
parent1ccfaf0523b69bda6f34e33faaf2dc9f321abfa9 (diff)
downloadrspamd-9370ea45e1a9b745cec61cd0e90389ee37f4853a.tar.gz
rspamd-9370ea45e1a9b745cec61cd0e90389ee37f4853a.zip
Fix parsing of fixed length IP addresses.
Diffstat (limited to 'test')
-rw-r--r--test/rspamd_http_test.c2
-rw-r--r--test/rspamd_upstream_test.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/rspamd_http_test.c b/test/rspamd_http_test.c
index 81b598a45..f05d828b5 100644
--- a/test/rspamd_http_test.c
+++ b/test/rspamd_http_test.c
@@ -244,7 +244,7 @@ rspamd_http_test_func (void)
mtx = rspamd_mempool_get_mutex (pool);
- rspamd_parse_inet_address (&addr, "127.0.0.1");
+ rspamd_parse_inet_address (&addr, "127.0.0.1", 0);
rspamd_inet_address_set_port (addr, ottery_rand_range (30000) + 32768);
serv_key = rspamd_http_connection_gen_key ();
client_key = rspamd_http_connection_gen_key ();
diff --git a/test/rspamd_upstream_test.c b/test/rspamd_upstream_test.c
index e2f2c17ee..528b0a9dc 100644
--- a/test/rspamd_upstream_test.c
+++ b/test/rspamd_upstream_test.c
@@ -138,9 +138,9 @@ rspamd_upstream_test_func (void)
nls = rspamd_upstreams_create ();
g_assert (rspamd_upstreams_add_upstream (nls, "127.0.0.1", 0, NULL));
up = rspamd_upstream_get (nls, RSPAMD_UPSTREAM_RANDOM);
- rspamd_parse_inet_address(&paddr, "127.0.0.2");
+ rspamd_parse_inet_address (&paddr, "127.0.0.2", 0);
g_assert (rspamd_upstream_add_addr (up, paddr));
- rspamd_parse_inet_address(&paddr, "::1");
+ rspamd_parse_inet_address (&paddr, "::1", 0);
g_assert (rspamd_upstream_add_addr (up, paddr));
addr = rspamd_upstream_addr (up);
for (i = 0; i < 256; i ++) {