mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-26 12:58:03 +00:00
BUG/MAJOR: cli: fix custom io_release was crushed by NULL.
The io_release could be set into the parsing request handler and must not be crushed. This patch should be backported on mainline branches 1.7 and 1.6
This commit is contained in:
parent
27f2dbbdfd
commit
d6871f785f
@ -464,9 +464,10 @@ static int cli_parse_request(struct appctx *appctx, char *line)
|
||||
return 0;
|
||||
|
||||
appctx->io_handler = kw->io_handler;
|
||||
appctx->io_release = kw->io_release;
|
||||
/* kw->parse could set its own io_handler or ip_release handler */
|
||||
if ((!kw->parse || kw->parse(args, appctx, kw->private) == 0) && appctx->io_handler) {
|
||||
appctx->st0 = CLI_ST_CALLBACK;
|
||||
appctx->io_release = kw->io_release;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user