Explorar o código

- before writing to fifo, hdr body is trimed

Bogdan-Andrei Iancu %!s(int64=20) %!d(string=hai) anos
pai
achega
a8c4b5f815
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
 			}