[sr-dev] git:master: sl: use global variable for event route index for local response

Daniel-Constantin Mierla miconda at gmail.com
Fri Sep 20 15:01:33 CEST 2013


Module: sip-router
Branch: master
Commit: 6592870dbd2b388b3884d85b9cc69e323f1d175a
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6592870dbd2b388b3884d85b9cc69e323f1d175a

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Sep 20 15:00:14 2013 +0200

sl: use global variable for event route index for local response

- rt should have been no longer used after previous commit
- reported by Ovidiu Sas

---

 modules/sl/sl_funcs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/sl/sl_funcs.c b/modules/sl/sl_funcs.c
index c9c870c..fd19e1c 100644
--- a/modules/sl/sl_funcs.c
+++ b/modules/sl/sl_funcs.c
@@ -150,7 +150,7 @@ int sl_reply_helper(struct sip_msg *msg, int code, char *reason, str *tag)
 	int backup_mhomed, ret;
 	str text;
 
-	int rt, backup_rt;
+	int backup_rt;
 	struct run_act_ctx ctx;
 	struct sip_msg pmsg;
 
@@ -293,7 +293,7 @@ int sl_reply_helper(struct sip_msg *msg, int code, char *reason, str *tag)
 			backup_rt = get_route_type();
 			set_route_type(LOCAL_ROUTE);
 			init_run_actions_ctx(&ctx);
-			run_top_route(event_rt.rlist[rt], &pmsg, 0);
+			run_top_route(event_rt.rlist[_sl_evrt_local_response], &pmsg, 0);
 			set_route_type(backup_rt);
 			p_onsend=0;
 




More information about the sr-dev mailing list