2
0
Эх сурвалжийг харах

- before writing to fifo, hdr body is trimed

Bogdan-Andrei Iancu 20 жил өмнө
parent
commit
a8c4b5f815
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      modules/tm/t_fifo.c

+ 2 - 1
modules/tm/t_fifo.c

@@ -633,8 +633,9 @@ static inline char* append2buf( char *buf, int len, struct sip_msg *req,
 						break;
 			}
 			if (hdr) {
+				trim_len( foo.len, foo.s, hdr->body);
 				buf=add2buf( buf, end, ha->title.s, ha->title.len,
-					hdr->body.s , hdr->body.len);
+					foo.s , foo.len);
 				if (!buf)
 					goto overflow_err;
 			}