[sr-dev] git:kamailio_3.0: core: fix parsing quoted paramers in To header

Daniel-Constantin Mierla miconda at gmail.com
Thu Aug 12 11:34:38 CEST 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 8839ee27a09ecbc37ca1a899655d76c6d4720e3a
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8839ee27a09ecbc37ca1a899655d76c6d4720e3a

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Jul 30 20:07:45 2010 +0200

core: fix parsing quoted paramers in To header

- fix off-by-one bug for quoted parameter values in parse_to
- patch by Alex Hermann, SF#3035382
(cherry picked from commit 8593bc83c748835c6132eaa678064a2466316ae7)

---

 parser/parse_to.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/parser/parse_to.c b/parser/parse_to.c
index 30ac170..d3fe90f 100644
--- a/parser/parse_to.c
+++ b/parser/parse_to.c
@@ -246,7 +246,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
 						status = PARA_VALUE_QUOTED;
 						break;
 					case PARA_VALUE_QUOTED:
-						param->value.len=tmp-param->value.s-1 ;
+						param->value.len=tmp-param->value.s;
 						add_param( param , to_b );
 						status = E_PARA_VALUE;
 						break;




More information about the sr-dev mailing list