BUG/MINOR: checks: Don't lose warning on proxy capability

When a tcp-check line is parsed, a warning may be reported if the keyword is
used for a frontend. The return value must be used to report it. But this info
is lost before the end of the function.

Partly fixes issue #600. No backport needed.
This commit is contained in:
Christopher Faulet 2020-04-28 10:47:28 +02:00
parent cd8eb85dfc
commit 528f4811d6

View File

@ -5566,7 +5566,7 @@ static int proxy_parse_tcpcheck(char **args, int section, struct proxy *curpx,
memprintf(errmsg, "'%s %s' : %s.", args[0], args[1], *errmsg);
goto error;
}
ret = (*errmsg != NULL); /* Handle warning */
ret = (ret || (*errmsg != NULL)); /* Handle warning */
/* No error: add the tcp-check rule in the list */
chk->index = index;