]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MAJOR: cli/streams: missing unlock on exit "show sess"
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 09:31:10 +0000 (10:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 09:31:10 +0000 (10:31 +0100)
An unlock was missing on the situation where the session disappeared
while watching it.

src/stream.c

index ddaca392608d478628e4e125ddefb5837a679a17..12545fb14803b0c1583fc5a79cd098b8ee3da9e2 100644 (file)
@@ -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;
                        }