Module: sip-router
Branch: kamailio_3.0
Commit: 61271a1ccf92eb26eb4916d05c43742f03ebe241
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=61271a1…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Sep 28 18:09:17 2010 +0200
core: switch(string) break/return fix
Commit 6ab93de3 (switch(string) memleak fix) broke break & return
from switch case statements.
Reported-by: Juha Heinanen jh tutpro com
(cherry picked from commit c9586e183f5fbde854ec8f27c38f58a7853e971a)
---
action.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/action.c b/action.c
index 315cffb..db71a15 100644
--- a/action.c
+++ b/action.c
@@ -1102,7 +1102,7 @@ sw_jt_def:
ret=run_actions(h, mct->jump[i], msg);
h->run_flags &= ~BREAK_R_F; /* catch breaks, but let
returns passthrough */
- break;
+ goto skip;
}
goto match_cleanup;
}