From: Willy Tarreau Date: Sun, 5 Nov 2017 09:31:10 +0000 (+0100) Subject: BUG/MAJOR: cli/streams: missing unlock on exit "show sess" X-Git-Tag: v1.8-rc3~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=70124ce3e12403632511944c17c7fb8e8455fde2;p=thirdparty%2Fhaproxy.git BUG/MAJOR: cli/streams: missing unlock on exit "show sess" An unlock was missing on the situation where the session disappeared while watching it. --- diff --git a/src/stream.c b/src/stream.c index ddaca39260..12545fb148 100644 --- a/src/stream.c +++ b/src/stream.c @@ -3229,6 +3229,7 @@ static int cli_io_handler_dump_sess(struct appctx *appctx) if (ci_putchk(si_ic(si), &trash) == -1) { si_applet_cant_put(si); + SPIN_UNLOCK(STRMS_LOCK, &streams_lock); return 0; }