diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-24 14:53:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-24 14:54:37 +0100 |
commit | 3281d1d77a53a6d905ef1aee0e0baf1096643283 (patch) | |
tree | f3864b2986f92fb61c923d6f358fcdcea8905b73 /src/libutil/radix.c | |
parent | d173e8d13ed53e9562f472c4f670797e9cfc78b9 (diff) | |
download | rspamd-3281d1d77a53a6d905ef1aee0e0baf1096643283.tar.gz rspamd-3281d1d77a53a6d905ef1aee0e0baf1096643283.zip |
[Fix] Strip spaces from map keys and values
Diffstat (limited to 'src/libutil/radix.c')
-rw-r--r-- | src/libutil/radix.c | 3 |
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) { |