[sr-dev] git:master:6db0e6b5: tm: fix wrong CRLF position when building local request when reusing received buffer
Daniel-Constantin Mierla
miconda at gmail.com
Thu Dec 1 12:21:48 CET 2016
Module: kamailio
Branch: master
Commit: 6db0e6b5a0b8ef48250abd7bfaedd15fc4860ddd
URL: https://github.com/kamailio/kamailio/commit/6db0e6b5a0b8ef48250abd7bfaedd15fc4860ddd
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-12-01T12:21:34+01:00
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
---
Modified: modules/tm/t_msgbuilder.c
---
Diff: https://github.com/kamailio/kamailio/commit/6db0e6b5a0b8ef48250abd7bfaedd15fc4860ddd.diff
Patch: https://github.com/kamailio/kamailio/commit/6db0e6b5a0b8ef48250abd7bfaedd15fc4860ddd.patch
---
diff --git a/modules/tm/t_msgbuilder.c b/modules/tm/t_msgbuilder.c
index 09bb6dc..4781a05 100644
--- a/modules/tm/t_msgbuilder.c
+++ b/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 )
More information about the sr-dev
mailing list