diff --git a/src/map.c b/src/map.c index ad47c7f23..0f1b75476 100644 --- a/src/map.c +++ b/src/map.c @@ -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;