Skip to content
Permalink
Browse files Browse the repository at this point in the history
tmx: allocate space to store ending 0 for branch value
- reported by Alfred Farrugia and Sandro Gauci
  • Loading branch information
miconda committed Feb 10, 2018
1 parent 00330db commit e1d8008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/tmx/tmx_pretran.c
Expand Up @@ -260,7 +260,7 @@ int tmx_check_pretran(sip_msg_t *msg)
if(likely(vbr!=NULL)) {
svbranch = vbr->value;
trim(&svbranch);
dsize += svbranch.len;
dsize += svbranch.len + 1;
}
if(dsize<256) dsize = 256;

Expand Down

0 comments on commit e1d8008

Please sign in to comment.