diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-23 16:13:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-23 16:13:23 +0100 |
commit | 45b3b5ddf56921037e545be8283b43e9af88a9d3 (patch) | |
tree | 089596546c946acd688d09caa3d49a7bec80a017 /test | |
parent | 494df3feb5543975c575219de68716377b90c15d (diff) | |
download | rspamd-45b3b5ddf56921037e545be8283b43e9af88a9d3.tar.gz rspamd-45b3b5ddf56921037e545be8283b43e9af88a9d3.zip |
Add tests for the problematic case in radix trie.
Diffstat (limited to 'test')
-rw-r--r-- | test/rspamd_radix_test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rspamd_radix_test.c b/test/rspamd_radix_test.c index a46f4a3b1..b10184e0a 100644 --- a/test/rspamd_radix_test.c +++ b/test/rspamd_radix_test.c @@ -72,6 +72,12 @@ struct _tv { {"109.206.26.202", NULL, "12", 0, 0, 0, 0}, {"130.244.233.150", NULL, "0", 0, 0, 0, 0}, + /* Close ip addresses */ + {"1.2.3.1", NULL, "32", 0, 0, 0, 0}, + {"1.2.3.2", NULL, "32", 0, 0, 0, 0}, + {"1.2.3.3", NULL, "32", 0, 0, 0, 0}, + {"1.2.3.4", NULL, "32", 0, 0, 0, 0}, + {NULL, NULL, NULL, 0, 0, 0, 0} }; |