Skip to content

Commit e1d8008

Browse files
committed
tmx: allocate space to store ending 0 for branch value
- reported by Alfred Farrugia and Sandro Gauci
1 parent 00330db commit e1d8008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/modules/tmx/tmx_pretran.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ int tmx_check_pretran(sip_msg_t *msg)
260260
if(likely(vbr!=NULL)) {
261261
svbranch = vbr->value;
262262
trim(&svbranch);
263-
dsize += svbranch.len;
263+
dsize += svbranch.len + 1;
264264
}
265265
if(dsize<256) dsize = 256;
266266

0 commit comments

Comments
 (0)