Browse Source

core: Via parser allows generic parameters without value separated by white spaces and semicolon

- reported by Iñaki Baz Castillo, closes FS#127
Daniel-Constantin Mierla 13 years ago
parent
commit
362b6f134c
1 changed files with 4 additions and 7 deletions
  1. 4 7
      parser/parse_via.c

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