aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/expression.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-24 16:57:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-24 16:57:32 +0000
commit2b09e03b9d09372cf8720b86bd346a9b658f0103 (patch)
tree20fdc7d2e5c28a5ec4bd547dacb08b92ca4623e8 /src/libutil/expression.c
parentd474c1d64128c8d062fb61db84f0827679c1ca5f (diff)
downloadrspamd-2b09e03b9d09372cf8720b86bd346a9b658f0103.tar.gz
rspamd-2b09e03b9d09372cf8720b86bd346a9b658f0103.zip
Fix some border cases while parsing expressions.
Diffstat (limited to 'src/libutil/expression.c')
-rw-r--r--src/libutil/expression.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/expression.c b/src/libutil/expression.c
index 06a3af8e8..350a9aebf 100644
--- a/src/libutil/expression.c
+++ b/src/libutil/expression.c
@@ -387,7 +387,7 @@ rspamd_parse_expression (const gchar *line, gsize len,
p ++;
}
else {
- if (p == end - 1) {
+ if (p == end - 1 && g_ascii_isdigit (*p)) {
p ++;
}