소스 검색

- before writing to fifo, hdr body is trimed

Bogdan-Andrei Iancu 20 년 전
부모
커밋
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;
 						break;
 			}
 			}
 			if (hdr) {
 			if (hdr) {
+				trim_len( foo.len, foo.s, hdr->body);
 				buf=add2buf( buf, end, ha->title.s, ha->title.len,
 				buf=add2buf( buf, end, ha->title.s, ha->title.len,
-					hdr->body.s , hdr->body.len);
+					foo.s , foo.len);
 				if (!buf)
 				if (!buf)
 					goto overflow_err;
 					goto overflow_err;
 			}
 			}