mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-18 19:56:59 +00:00
MINOR: stream-int: Be able to allocate a CS without connection
si_alloc_cs() function may now be called without connection. It is mandatory to allocate the backend conn-stream during the stream creation.
This commit is contained in:
parent
1a3b598b47
commit
e39827de0d
@ -427,7 +427,7 @@ static inline struct conn_stream *si_alloc_cs(struct stream_interface *si, struc
|
||||
|
||||
si_release_endpoint(si);
|
||||
|
||||
cs = cs_new(conn, conn->target);
|
||||
cs = cs_new(conn, (conn ? conn->target : NULL));
|
||||
if (cs)
|
||||
si_attach_cs(si, cs);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user