Module: sip-router
Branch: master
Commit: 8593bc83c748835c6132eaa678064a2466316ae7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8593bc8…
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
---
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 8dbaacf..8bfdca7 100644
--- a/parser/parse_to.c
+++ b/parser/parse_to.c
@@ -241,7 +241,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;