Browse code

ASSIGN_T uses 0 as right hand side value if eval_expr() returns with error. That means, the expression evaluation result is false in case of any error.

Miklos Tirpak authored on 23/04/2008 10:58:37
Showing 1 changed files
... ...
@@ -813,6 +813,7 @@ int do_action(struct run_act_ctx* h, struct action* a, struct sip_msg* msg)
813 813
 						break;
814 814
 					} else {
815 815
 						LOG(L_WARN,"WARNING: do_action: error in expression\n");
816
+						v = 0; /* error is treated as false (Miklos) */
816 817
 					}
817 818
 				}
818 819