[sr-dev] git:master:53263a2d: tm: Reset socket variable while forking
Hugh Waite
hugh.waite at xura.com
Thu Jan 7 13:26:44 CET 2016
Module: kamailio
Branch: master
Commit: 53263a2ddad9bb118763516bcd7995652c4fb070
URL: https://github.com/kamailio/kamailio/commit/53263a2ddad9bb118763516bcd7995652c4fb070
Author: Hugh Waite <hugh.waite at xura.com>
Committer: Hugh Waite <hugh.waite at xura.com>
Date: 2016-01-07T12:17:03Z
tm: Reset socket variable while forking
- Reset sock_str variable so values from previous forks are not stored in contact_flows AVP
---
Modified: modules/tm/t_serial.c
---
Diff: https://github.com/kamailio/kamailio/commit/53263a2ddad9bb118763516bcd7995652c4fb070.diff
Patch: https://github.com/kamailio/kamailio/commit/53263a2ddad9bb118763516bcd7995652c4fb070.patch
---
diff --git a/modules/tm/t_serial.c b/modules/tm/t_serial.c
index b278924..2fb734f 100644
--- a/modules/tm/t_serial.c
+++ b/modules/tm/t_serial.c
@@ -626,6 +626,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);
More information about the sr-dev
mailing list