mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-08 08:07:10 +02:00
MINOR: quic: Initialize the session before starting the xprt.
We must ensure the session and the mux are initialized before starting the xprt.
This commit is contained in:
parent
1e1aad4ff4
commit
ecb5872012
@ -57,16 +57,16 @@ int quic_session_accept(struct connection *cli_conn)
|
|||||||
goto out_free_conn;
|
goto out_free_conn;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (conn_xprt_start(cli_conn) < 0)
|
|
||||||
goto out_free_conn;
|
|
||||||
|
|
||||||
sess = session_new(p, l, &cli_conn->obj_type);
|
sess = session_new(p, l, &cli_conn->obj_type);
|
||||||
if (!sess)
|
if (!sess)
|
||||||
goto out_free_conn;
|
goto out_free_conn;
|
||||||
|
|
||||||
conn_set_owner(cli_conn, sess, NULL);
|
conn_set_owner(cli_conn, sess, NULL);
|
||||||
|
|
||||||
if (conn_complete_session(cli_conn) >= 0)
|
if (conn_complete_session(cli_conn) < 0)
|
||||||
|
goto out_free_sess;
|
||||||
|
|
||||||
|
if (conn_xprt_start(cli_conn) >= 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
out_free_sess:
|
out_free_sess:
|
||||||
|
Loading…
Reference in New Issue
Block a user