aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/radix.c
diff options
context:
space:
mode:
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);
}