commit | 25607afa0ad3158d06acfcd936a2bd850043773f | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Fri Nov 23 14:50:47 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Nov 23 14:56:46 2018 +0100 |
tree | 1acbb3727a520c5f011628f08701c774368da2aa | |
parent | 1295016873ac4b0a2913549a2737cc95a7df2398 [diff] |
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().