aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/radix.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-24 13:30:01 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-24 13:30:01 +0000
commit18b681e68af2bf46d1b153d910ae65109f148158 (patch)
tree06f860320b18f948938073edc64281b30e2c9dad /src/libutil/radix.c
parent0bdae52153a2bb591187015adbad935f65daa45d (diff)
downloadrspamd-18b681e68af2bf46d1b153d910ae65109f148158.tar.gz
rspamd-18b681e68af2bf46d1b153d910ae65109f148158.zip
[Fix] Fix static IP maps
Diffstat (limited to 'src/libutil/radix.c')
-rw-r--r--src/libutil/radix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/radix.c b/src/libutil/radix.c
index fcc6b1cf6..ebfd03197 100644
--- a/src/libutil/radix.c
+++ b/src/libutil/radix.c
@@ -315,12 +315,14 @@ gboolean
radix_add_generic_iplist (const gchar *ip_list, radix_compressed_t **tree,
gboolean resolve)
{
+ static const char fill_ptr[] = "1";
+
if (*tree == NULL) {
*tree = radix_create_compressed ();
}
return (rspamd_radix_add_iplist (ip_list, ",; ", *tree,
- GINT_TO_POINTER (1), resolve) > 0);
+ fill_ptr, resolve) > 0);
}