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

tm: fix wrong CRLF position when building local request when reusing received buffer

- should affect only configs when tm parameters for reparsing request
  were changed from their default value
- reported by Helio Okuyama
Daniel-Constantin Mierla 8 жил өмнө
parent
commit
6db0e6b5a0

+ 1 - 1
modules/tm/t_msgbuilder.c

@@ -198,8 +198,8 @@ char *build_local(struct cell *Trans,unsigned int branch,
 	append_str( p, Trans->cseq_n.s, Trans->cseq_n.len );
 	append_str( p, " ", 1 );
 	append_str( p, method, method_len );
-	append_str( p, MAXFWD_HEADER, MAXFWD_HEADER_LEN );
 	append_str( p, CRLF, CRLF_LEN );
+	append_str( p, MAXFWD_HEADER, MAXFWD_HEADER_LEN );
 
 	if (!is_local(Trans))  {
 		for ( hdr=Trans->uas.request->headers ; hdr ; hdr=hdr->next )