aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/radix.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-27 12:15:57 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-27 12:15:57 +0000
commite47d8db1f1c1b8983263075ad00401a49e90560c (patch)
treeca19db73c777520ff311a2445f53edf3203c0773 /src/libutil/radix.c
parent2aeb35054e5ed990dd795e0f688be893bf16e243 (diff)
downloadrspamd-e47d8db1f1c1b8983263075ad00401a49e90560c.tar.gz
rspamd-e47d8db1f1c1b8983263075ad00401a49e90560c.zip
[Minor] Allow to parse and create stack based inet_addr_t
Diffstat (limited to 'src/libutil/radix.c')
-rw-r--r--src/libutil/radix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/radix.c b/src/libutil/radix.c
index ebfd03197..8b1ca01c9 100644
--- a/src/libutil/radix.c
+++ b/src/libutil/radix.c
@@ -291,6 +291,7 @@ rspamd_radix_add_iplist (const gchar *list, const gchar *separators,
if (k > 32) {
k = 32;
}
+
radix_insert_compressed (tree, (guint8 *)&ina, sizeof (ina),
32 - k, (uintptr_t)value);
res ++;