Module: kamailio
Branch: master
Commit: 192cf785eead68980194e63b06e34bf8f5f861f3
URL:
https://github.com/kamailio/kamailio/commit/192cf785eead68980194e63b06e34bf…
Author: Hugh Waite <hugh.waite(a)acision.com>
Committer: Hugh Waite <hugh.waite(a)acision.com>
Date: 2015-05-29T14:40:53+01:00
tm: Ensure all contact attributes are initialised to NULL when serial forking
---
Modified: modules/tm/t_serial.c
---
Diff:
https://github.com/kamailio/kamailio/commit/192cf785eead68980194e63b06e34bf…
Patch:
https://github.com/kamailio/kamailio/commit/192cf785eead68980194e63b06e34bf…
---
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;