aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/expression.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-19 12:24:15 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-19 13:47:54 +0000
commit448eee861df91ecc2c7a505f2463d03cf1112fef (patch)
treef8693b87ba906f399d8b19804bef0a2800bb51a9 /src/libutil/expression.c
parent9825f6a5f0a7924899bf87679e5d7708c96f25da (diff)
downloadrspamd-448eee861df91ecc2c7a505f2463d03cf1112fef.tar.gz
rspamd-448eee861df91ecc2c7a505f2463d03cf1112fef.zip
Select operand on OR operation.
Diffstat (limited to 'src/libutil/expression.c')
-rw-r--r--src/libutil/expression.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/expression.c b/src/libutil/expression.c
index 928bfad32..4b987ccae 100644
--- a/src/libutil/expression.c
+++ b/src/libutil/expression.c
@@ -598,6 +598,7 @@ rspamd_process_expression (struct rspamd_expression *expr, gpointer data)
g_assert (expr->expression_stack->len > 1);
st_elt[0] = rspamd_expr_stack_pop (expr);
st_elt[1] = rspamd_expr_stack_pop (expr);
+ ev = CHOSE_OPERAND (st_elt[0], st_elt[1]);
PROCESS_ELT (expr, ev);
if (ev->value) {