mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MEDIUM: connection: Don't crush context pointer location if it is a CS
The issue only concerns the backend connection. The conn-stream is now owned by the stream and persists during all the stream life. Thus we must not crush it when the backend connection is released. It is 2.6-specific. No backport is needed.
This commit is contained in:
parent
cef08c20c7
commit
2bb5edcf19
1 changed files with 0 additions and 7 deletions
|
|
@ -501,13 +501,6 @@ void conn_free(struct connection *conn)
|
|||
pool_free(pool_head_conn_hash_node, conn->hash_node);
|
||||
conn->hash_node = NULL;
|
||||
|
||||
/* By convention we always place a NULL where the ctx points to if the
|
||||
* mux is null. It may have been used to store the connection as a
|
||||
* conn-stream's end point for example.
|
||||
*/
|
||||
if (conn->ctx != NULL && conn->mux == NULL)
|
||||
*(void **)conn->ctx = NULL;
|
||||
|
||||
conn_force_unsubscribe(conn);
|
||||
pool_free(pool_head_connection, conn);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue