Module: sip-router
Branch: 3.2
Commit: 0e9f7bf5e7085121df75f3e07cd6aaff49280964
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0e9f7bf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jun 1 09:06:33 2012 +0200
core: Via parser allows generic parameters without value separated by white spaces and
semicolon
- reported by Iñaki Baz Castillo, closes FS#127
(cherry picked from commit 362b6f134c5ab408d6bb492e2492bcfc5bab4996)
---
parser/parse_via.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/parser/parse_via.c b/parser/parse_via.c
index 5c54e09..9545294 100644
--- a/parser/parse_via.c
+++ b/parser/parse_via.c
@@ -1126,13 +1126,10 @@ static /*inline*/ char* parse_via_param(char* p, char* end,
goto endofvalue;
#endif
case L_VALUE:
- if (param->type==FIN_RPORT){
- param->value.len=0;
- param->value.s=0; /* null value */
- state=F_PARAM;
- goto endofvalue;
- };
- /* no break */
+ param->value.len=0;
+ param->value.s=0; /* null value */
+ state=F_PARAM;
+ goto endofvalue;
default:
LOG(L_ERR, "ERROR: parse_via: invalid char <%c>"
" in state %d\n", *tmp, state);