BUG/MINOR: ssl: check on forbidden character on wrong value
The check on the forbidden '/' for the crt-store load keyword was done on the keyword instead of the value itself. No backport needed.
This commit is contained in:
parent
bdee8ace81
commit
ff4a0f6562
@ -4086,7 +4086,7 @@ static int crtstore_parse_load(char **args, int section_type, struct proxy *curp
|
||||
if (strcmp("alias", args[cur_arg]) == 0) {
|
||||
int rv;
|
||||
|
||||
if (*args[cur_arg] == '/') {
|
||||
if (*args[cur_arg + 1] == '/') {
|
||||
memprintf(err, "parsing [%s:%d] : cannot parse '%s' value '%s', '/' is forbidden as the first character.\n",
|
||||
file, linenum, args[cur_arg], args[cur_arg + 1]);
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user