Module: sip-router
Branch: kamailio_3.0
Commit: 8839ee27a09ecbc37ca1a899655d76c6d4720e3a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8839ee2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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;