Module: sip-router
Branch: master
Commit: c9586e183f5fbde854ec8f27c38f58a7853e971a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c9586e1…
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
---
action.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/action.c b/action.c
index ec098ff..3768dfa 100644
--- a/action.c
+++ b/action.c
@@ -1333,7 +1333,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;
}