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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/radix.c b/src/libutil/radix.c
index 3ef471174..a42be7032 100644
--- a/src/libutil/radix.c
+++ b/src/libutil/radix.c
@@ -197,8 +197,9 @@ rspamd_radix_add_iplist (const gchar *list, const gchar *separators,
cur++;
continue;
}
+
/* Extract ipnet */
- ipnet = *cur;
+ ipnet = g_strstrip (*cur);
token = strsep (&ipnet, "/");
if (ipnet != NULL) {