[sr-dev] git:master: core: Via parser allows generic parameters without value separated by white spaces and semicolon

Daniel-Constantin Mierla miconda at gmail.com
Fri Jun 1 09:15:19 CEST 2012


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 <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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

---

 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);




More information about the sr-dev mailing list