[sr-dev] git:master:28352916: dispatcher: fix socket selection

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 22 10:25:01 CEST 2015


Module: kamailio
Branch: master
Commit: 28352916336644540a14dcf0c31e217c7621799a
URL: https://github.com/kamailio/kamailio/commit/28352916336644540a14dcf0c31e217c7621799a

Author: Sven Neuhaus <neuhaus at tyntec.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-04-15T11:03:38+02:00

dispatcher: fix socket selection

- wrong variable was used for scanning the value stored in avp

---

Modified: modules/dispatcher/dispatch.c

---

Diff:  https://github.com/kamailio/kamailio/commit/28352916336644540a14dcf0c31e217c7621799a.diff
Patch: https://github.com/kamailio/kamailio/commit/28352916336644540a14dcf0c31e217c7621799a.patch

---

diff --git a/modules/dispatcher/dispatch.c b/modules/dispatcher/dispatch.c
index 6394ae8..1a0b41a 100644
--- a/modules/dispatcher/dispatch.c
+++ b/modules/dispatcher/dispatch.c
@@ -2092,7 +2092,7 @@ int ds_next_dst(struct sip_msg *msg, int mode)
 	if(sock_avp_name.n!=0)
 	{
 		prev_avp = search_first_avp(sock_avp_type,
-				attrs_avp_name, &avp_value, &st);
+				attrs_avp_name, &sock_avp_value, &st);
 		if(prev_avp!=NULL)
 		{
 			if (sscanf( sock_avp_value.s.s, "%p", (void**)&sock ) != 1)




More information about the sr-dev mailing list