]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: sessions: Set sess->origin to NULL if the origin was destroyed.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 23 Nov 2018 13:50:47 +0000 (14:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2018 13:56:46 +0000 (14:56 +0100)
commit25607afa0ad3158d06acfcd936a2bd850043773f
tree1acbb3727a520c5f011628f08701c774368da2aa
parent1295016873ac4b0a2913549a2737cc95a7df2398
BUG/MEDIUM: sessions: Set sess->origin to NULL if the origin was destroyed.

When ending a stream, if the origin is an appctx, the appctx will have been
destroyed already, but it does not destroy the session. So later, when we
try to destroy the session, we try to dereference sess->origin and die
trying.
Fix this by explicitely setting sess->origin to NULL before calling
session_free().
src/stream.c