[sr-dev] git:master: parser/parse_addr_spec: comma allowd for start of tag value and mid tag value chars

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 26 20:22:08 CET 2014


Module: sip-router
Branch: master
Commit: a9e900a3dd5c958f3188376c3c4d3179c68e2c32
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a9e900a3dd5c958f3188376c3c4d3179c68e2c32

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Feb 26 20:20:29 2014 +0100

parser/parse_addr_spec: comma allowd for start of tag value and mid tag value chars

---

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

diff --git a/parser/parse_addr_spec.c b/parser/parse_addr_spec.c
index 9a8e3b3..80ad553 100644
--- a/parser/parse_addr_spec.c
+++ b/parser/parse_addr_spec.c
@@ -481,7 +481,8 @@ semicolon_add_param:
 					}
 					break;
 				} else {
-					if(status==S_PARA_VALUE && param->type==TAG_PARAM) {
+					if((status==S_PARA_VALUE || status==PARA_VALUE_TOKEN)
+							&& param->type==TAG_PARAM) {
 						/* if comma is not separator, allow it as part of value
 						 * - some user agents use it */
 						break;




More information about the sr-dev mailing list