aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-08 21:53:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-08 21:53:32 +0100
commitb9dbe9c6a67661a3c3599602be6620b2ff241dd6 (patch)
treeb3e4897fbb19e94f8bd7d92e831cd9b8423ac129 /src/libserver/cfg_utils.c
parentb0e091bb90c6725adc7142bdd7d732ce00490ae5 (diff)
downloadrspamd-b9dbe9c6a67661a3c3599602be6620b2ff241dd6.tar.gz
rspamd-b9dbe9c6a67661a3c3599602be6620b2ff241dd6.zip
Restore parsing of headers.
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 4e1d6b2c8..5194d5266 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -252,16 +252,17 @@ rspamd_config_parse_limit (const gchar *limit, guint len)
}
gchar
-rspamd_config_parse_flag (const gchar *str)
+rspamd_config_parse_flag (const gchar *str, guint len)
{
- guint len;
gchar c;
if (!str || !*str) {
return -1;
}
- len = strlen (str);
+ if (len == 0) {
+ len = strlen (str);
+ }
switch (len) {
case 1: