ASSIGN_T uses 0 as right hand side value if eval_expr() returns
authorMiklos Tirpak <miklos@iptel.org>
Wed, 23 Apr 2008 10:58:37 +0000 (10:58 +0000)
committerMiklos Tirpak <miklos@iptel.org>
Wed, 23 Apr 2008 10:58:37 +0000 (10:58 +0000)
with error. That means, the expression evaluation result is false in case
of any error.

action.c

index 9824340..92f2334 100644 (file)
--- a/action.c
+++ b/action.c
@@ -813,6 +813,7 @@ int do_action(struct run_act_ctx* h, struct action* a, struct sip_msg* msg)
                                                break;
                                        } else {
                                                LOG(L_WARN,"WARNING: do_action: error in expression\n");
+                                               v = 0; /* error is treated as false (Miklos) */
                                        }
                                }