Controller: rejecting double wildcards.

This commit is contained in:
Valentin Bartenev
2019-04-12 17:44:55 +03:00
parent f0cc14d394
commit 5e1cf14565

View File

@@ -777,7 +777,12 @@ nxt_conf_vldt_match_pattern(nxt_conf_validation_t *vldt,
case sw_side:
if (i == last) {
break;
if (last - first != 1) {
break;
}
return nxt_conf_vldt_error(vldt, "The \"match\" pattern must "
"not contain double \"*\" markers.");
}
/* Fall through. */