From 192cf785eead68980194e63b06e34bf8f5f861f3 Mon Sep 17 00:00:00 2001 From: Hugh Waite Date: Fri, 29 May 2015 14:40:53 +0100 Subject: [PATCH] tm: Ensure all contact attributes are initialised to NULL when serial forking --- modules/tm/t_serial.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/tm/t_serial.c b/modules/tm/t_serial.c index ab83540b9b7..b278924f009 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;