[sr-dev] git:master:192cf785: tm: Ensure all contact attributes are initialised to NULL when serial forking

Hugh Waite hugh.waite at acision.com
Thu Jun 11 10:35:52 CEST 2015


Module: kamailio
Branch: master
Commit: 192cf785eead68980194e63b06e34bf8f5f861f3
URL: https://github.com/kamailio/kamailio/commit/192cf785eead68980194e63b06e34bf8f5f861f3

Author: Hugh Waite <hugh.waite at acision.com>
Committer: Hugh Waite <hugh.waite at 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/192cf785eead68980194e63b06e34bf8f5f861f3.diff
Patch: https://github.com/kamailio/kamailio/commit/192cf785eead68980194e63b06e34bf8f5f861f3.patch

---

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;




More information about the sr-dev mailing list