Skip to content

Commit

Permalink
tm: Ensure all contact attributes are initialised to NULL when serial…
Browse files Browse the repository at this point in the history
… forking
  • Loading branch information
Hugh Waite committed May 29, 2015
1 parent 4033b77 commit 192cf78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/tm/t_serial.c
Expand Up @@ -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;
Expand Down

0 comments on commit 192cf78

Please sign in to comment.