Module: kamailio Branch: 4.2 Commit: 727746451baaf0a59225cbdf45474df6eaba2bcc URL: https://github.com/kamailio/kamailio/commit/727746451baaf0a59225cbdf45474df6...
Author: Hugh Waite hugh.waite@xura.com Committer: Hugh Waite hugh.waite@xura.com Date: 2016-01-07T12:21:51Z
tm: Reset socket variable while forking - Reset sock_str variable so values from previous forks are not stored in contact_flows AVP (cherry picked from commit 53263a2ddad9bb118763516bcd7995652c4fb070)
---
Modified: modules/tm/t_serial.c
---
Diff: https://github.com/kamailio/kamailio/commit/727746451baaf0a59225cbdf45474df6... Patch: https://github.com/kamailio/kamailio/commit/727746451baaf0a59225cbdf45474df6...
---
diff --git a/modules/tm/t_serial.c b/modules/tm/t_serial.c index 63d3bb7..12dc332 100644 --- a/modules/tm/t_serial.c +++ b/modules/tm/t_serial.c @@ -598,6 +598,8 @@ int t_next_contacts(struct sip_msg* msg, char* key, char* value) } } else { sock = NULL; + sock_str.s = 0; + sock_str.len = 0; }
vavp = xavp_get(&flags_name, xavp->val.v.xavp);