mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-18 04:55:37 +00:00
[BUG] appsession's sessid must be reset at end of transaction
If we don't do that, we may corrupt the pools in keep-alive sessions.
This commit is contained in:
parent
11f8f5458f
commit
762a23618e
@ -6357,6 +6357,8 @@ void http_end_txn(struct session *s)
|
||||
pool_free2(pool2_requri, txn->uri);
|
||||
pool_free2(pool2_capture, txn->cli_cookie);
|
||||
pool_free2(pool2_capture, txn->srv_cookie);
|
||||
pool_free2(apools.sessid, s->sessid);
|
||||
s->sessid = NULL;
|
||||
txn->uri = NULL;
|
||||
txn->srv_cookie = NULL;
|
||||
txn->cli_cookie = NULL;
|
||||
|
@ -78,9 +78,6 @@ void session_free(struct session *s)
|
||||
pool_free2(pool2_buffer, s->req);
|
||||
pool_free2(pool2_buffer, s->rep);
|
||||
|
||||
if (s->sessid)
|
||||
pool_free2(apools.sessid, s->sessid);
|
||||
|
||||
http_end_txn(s);
|
||||
|
||||
if (fe) {
|
||||
|
Loading…
Reference in New Issue
Block a user