Browse Source

tm: Ensure all contact attributes are initialised to NULL when serial forking

Hugh Waite 10 years ago
parent
commit
192cf785ee
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/tm/t_serial.c

+ 1 - 0
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;