Module: kamailio
Branch: master
Commit: 28352916336644540a14dcf0c31e217c7621799a
URL:
https://github.com/kamailio/kamailio/commit/28352916336644540a14dcf0c31e217…
Author: Sven Neuhaus <neuhaus(a)tyntec.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/28352916336644540a14dcf0c31e217…
Patch:
https://github.com/kamailio/kamailio/commit/28352916336644540a14dcf0c31e217…
---
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)