Module: kamailio Branch: 4.3 Commit: b83c7fef0e4d5c3cab1e2d0ad46bab7e9a852118 URL: https://github.com/kamailio/kamailio/commit/b83c7fef0e4d5c3cab1e2d0ad46bab7e...
Author: Hugh Waite hugh.waite@acision.com Committer: Hugh Waite hugh.waite@acision.com Date: 2015-06-11T10:14:38+01:00
tm: Ensure all contact attributes are initialised to NULL when serial forking (cherry picked from commit 192cf785eead68980194e63b06e34bf8f5f861f3)
---
Modified: modules/tm/t_serial.c
---
Diff: https://github.com/kamailio/kamailio/commit/b83c7fef0e4d5c3cab1e2d0ad46bab7e... Patch: https://github.com/kamailio/kamailio/commit/b83c7fef0e4d5c3cab1e2d0ad46bab7e...
---
diff --git a/modules/tm/t_serial.c b/modules/tm/t_serial.c index ab83540..b278924 100644 --- a/modules/tm/t_serial.c +++ b/modules/tm/t_serial.c @@ -263,6 +263,7 @@ int t_load_contacts(struct sip_msg* msg, char* key, char* value) return -1; }
+ memset(next, 0, sizeof(struct contact)); next->uri.s = branch->uri; next->uri.len = branch->len; next->dst_uri.s = branch->dst_uri;