[sr-dev] git:4.3:b83c7fef: tm: Ensure all contact attributes are initialised to NULL when serial forking

Hugh Waite hugh.waite at acision.com
Thu Jun 11 11:15:33 CEST 2015


Module: kamailio
Branch: 4.3
Commit: b83c7fef0e4d5c3cab1e2d0ad46bab7e9a852118
URL: https://github.com/kamailio/kamailio/commit/b83c7fef0e4d5c3cab1e2d0ad46bab7e9a852118

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