mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
BUG/MINOR: quic: set the source not the destination address on accept()
When a QUIC connection is accepted, the wrong field is set from the client's source address, it's the destination instead of the source. No backport needed.
This commit is contained in:
parent
8038821c88
commit
9cc88c3075
@ -98,10 +98,10 @@ static int new_quic_cli_conn(struct quic_conn *qc, struct listener *l,
|
|||||||
if (unlikely((cli_conn = conn_new(&l->obj_type)) == NULL))
|
if (unlikely((cli_conn = conn_new(&l->obj_type)) == NULL))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (!sockaddr_alloc(&cli_conn->dst, saddr, sizeof *saddr))
|
if (!sockaddr_alloc(&cli_conn->src, saddr, sizeof *saddr))
|
||||||
goto out_free_conn;
|
goto out_free_conn;
|
||||||
|
|
||||||
cli_conn->flags |= CO_FL_ADDR_TO_SET;
|
cli_conn->flags |= CO_FL_ADDR_FROM_SET;
|
||||||
qc->conn = cli_conn;
|
qc->conn = cli_conn;
|
||||||
cli_conn->qc = qc;
|
cli_conn->qc = qc;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user