From 18b681e68af2bf46d1b153d910ae65109f148158 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 24 Nov 2016 13:30:01 +0000 Subject: [Fix] Fix static IP maps --- src/libutil/radix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libutil/radix.c') 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); } -- cgit v1.2.3