Module: sip-router Branch: master Commit: 362b6f134c5ab408d6bb492e2492bcfc5bab4996 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=362b6f134c5ab408d6bb492e2492bcfc5bab4996
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> 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 --- 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 1ed1004..48ef466 100644 --- a/parser/parse_via.c +++ b/parser/parse_via.c @@ -1127,13 +1127,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); _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
