mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-11 16:08:00 +00:00
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:
parent
cd8eb85dfc
commit
528f4811d6
@ -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);
|
memprintf(errmsg, "'%s %s' : %s.", args[0], args[1], *errmsg);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
ret = (*errmsg != NULL); /* Handle warning */
|
ret = (ret || (*errmsg != NULL)); /* Handle warning */
|
||||||
|
|
||||||
/* No error: add the tcp-check rule in the list */
|
/* No error: add the tcp-check rule in the list */
|
||||||
chk->index = index;
|
chk->index = index;
|
||||||
|
Loading…
Reference in New Issue
Block a user