diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-13 15:17:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-13 15:17:45 +0100 |
commit | 9370ea45e1a9b745cec61cd0e90389ee37f4853a (patch) | |
tree | d70d4da3d8bfa5e3dd5d0ac99fa6a2ad63ef5c0c /test/rspamd_upstream_test.c | |
parent | 1ccfaf0523b69bda6f34e33faaf2dc9f321abfa9 (diff) | |
download | rspamd-9370ea45e1a9b745cec61cd0e90389ee37f4853a.tar.gz rspamd-9370ea45e1a9b745cec61cd0e90389ee37f4853a.zip |
Fix parsing of fixed length IP addresses.
Diffstat (limited to 'test/rspamd_upstream_test.c')
-rw-r--r-- | test/rspamd_upstream_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ++) { |