Explorar o código

tmx: allocate space to store ending 0 for branch value

- reported by Alfred Farrugia and Sandro Gauci
Daniel-Constantin Mierla %!s(int64=7) %!d(string=hai) anos
pai
achega
e1d8008a09
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/modules/tmx/tmx_pretran.c

+ 1 - 1
src/modules/tmx/tmx_pretran.c

@@ -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;