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:
Christopher Faulet 2021-12-16 16:10:39 +01:00
parent 1a3b598b47
commit e39827de0d

View File

@ -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);