mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue