From 45b3b5ddf56921037e545be8283b43e9af88a9d3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 23 Sep 2015 16:13:23 +0100 Subject: [PATCH] Add tests for the problematic case in radix trie. --- test/rspamd_radix_test.c | 6 ++++++ 1 file changed, 6 insertions(+) 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} }; -- 2.39.5