diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-20 15:14:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-20 15:14:47 +0100 |
commit | 52153908f55b0469a6961eb19eb8bdd86814a06b (patch) | |
tree | cf5aab4452f9b3ebfa3b2298e0f5cd17e9490a93 | |
parent | 2dffb7a95c380be14beefcc0f04a3b16d9ce9e02 (diff) | |
download | rspamd-52153908f55b0469a6961eb19eb8bdd86814a06b.tar.gz rspamd-52153908f55b0469a6961eb19eb8bdd86814a06b.zip |
Fix AST processing for sole comparision rules.
-rw-r--r-- | src/libutil/expression.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libutil/expression.c b/src/libutil/expression.c index d8ed54bcd..838a4ffff 100644 --- a/src/libutil/expression.c +++ b/src/libutil/expression.c @@ -899,6 +899,11 @@ rspamd_ast_process_node (struct rspamd_expression *expr, gint flags, GNode *node celt = cld->data; /* Save limit if we've found it */ + if (celt->type == ELT_LIMIT) { + lim = celt->p.lim.val; + continue; + } + val = rspamd_ast_process_node (expr, flags, cld, data); if (acc == G_MININT) { @@ -1006,7 +1011,7 @@ rspamd_ast_string_traverse (GNode *n, gpointer d) op_str = "<="; break; case OP_LT: - op_str = ">="; + op_str = "<"; break; default: op_str = "???"; |