[sr-dev] git:sr_3.0: htable(k): fix non-init act. ctx in event route execution

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Oct 28 16:11:42 CET 2009


Module: sip-router
Branch: sr_3.0
Commit: 4ac8656cb483f64e88a2a70996178ffdef85e097
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4ac8656cb483f64e88a2a70996178ffdef85e097

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Wed Oct 28 16:11:22 2009 +0100

htable(k): fix non-init act. ctx in event route execution

- the event route was executed with an uninitialized run_act_ctx.

---

 modules_k/htable/htable.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules_k/htable/htable.c b/modules_k/htable/htable.c
index 6291c2b..2d49864 100644
--- a/modules_k/htable/htable.c
+++ b/modules_k/htable/htable.c
@@ -185,6 +185,7 @@ static int child_init(int rank)
 		fmsg = faked_msg_next();
 		rtb = get_route_type();
 		set_route_type(REQUEST_ROUTE);
+		init_run_actions_ctx(&ctx);
 		run_top_route(event_rt.rlist[rt], fmsg, &ctx);
 		if(ctx.run_flags&DROP_R_F)
 		{




More information about the sr-dev mailing list