]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] fix random memory corruption using "show sess"
authorWilly Tarreau <w@1wt.eu>
Sun, 22 Feb 2009 14:17:24 +0000 (15:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 22 Feb 2009 14:17:24 +0000 (15:17 +0100)
commitfd3828e263bce5e97c4e1f31aebc380addb6a897
treeb01ac03225d3cdc98e4a7a97e7c2566759620615
parent59140a2c8200221f59a0a7acfaf825edb5cc5d69
[BUG] fix random memory corruption using "show sess"

Commit 8a5c626e73bac905d150185e45110525588d7b4c introduced the sessions
dump on the unix socket. This implementation is buggy because it may try
to link to the sessions list's head after the last session is removed
with a backref. Also, for the LIST_ISEMPTY test to succeed, we have to
proceed with LIST_INIT after LIST_DEL.
src/client.c
src/dumpstats.c
src/proto_uxst.c
src/session.c