diff options
Diffstat (limited to '')
-rw-r--r-- | src/nxt_conf_validation.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c index e2e1b89e..aedcc605 100644 --- a/src/nxt_conf_validation.c +++ b/src/nxt_conf_validation.c @@ -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. */ |