]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Select operand on OR operation.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Mar 2015 12:24:15 +0000 (12:24 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Mar 2015 13:47:54 +0000 (13:47 +0000)
src/libutil/expression.c

index 928bfad3266537233a5ca08e212fbac937bad306..4b987ccaec61259b4eff9a9b66d8d4ce597a59e8 100644 (file)
@@ -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) {