mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-11 09:52:56 -04:00
BUG/MINOR: map: correctly track reference to the last ref_elt being dumped
The bug was introduced in the commit 8d85aa4 ("BUG/MAJOR: map: fix
segfault during 'show map/acl' on cli").
This patch should be backported to 1.8, 1.7 and 1.6.
This commit is contained in:
parent
32d539fa88
commit
336a11f755
1 changed files with 3 additions and 3 deletions
|
|
@ -307,9 +307,9 @@ static int cli_io_handler_pat_list(struct appctx *appctx)
|
|||
* reference to the last ref_elt being dumped.
|
||||
*/
|
||||
if (appctx->st2 == STAT_ST_LIST) {
|
||||
if (!LIST_ISEMPTY(&appctx->ctx.sess.bref.users)) {
|
||||
LIST_DEL(&appctx->ctx.sess.bref.users);
|
||||
LIST_INIT(&appctx->ctx.sess.bref.users);
|
||||
if (!LIST_ISEMPTY(&appctx->ctx.map.bref.users)) {
|
||||
LIST_DEL(&appctx->ctx.map.bref.users);
|
||||
LIST_INIT(&appctx->ctx.map.bref.users);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue