From 57ac3faed7ac8384800c71b833475f15107d0f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Sat, 21 May 2022 22:36:08 +0200 Subject: [PATCH] CLEANUP: quic: No more used handshake output buffer ->obuf quic_conn struct member is no more used. --- include/haproxy/xprt_quic-t.h | 5 ----- src/xprt_quic.c | 3 --- 2 files changed, 8 deletions(-) diff --git a/include/haproxy/xprt_quic-t.h b/include/haproxy/xprt_quic-t.h index a975b1782..bb7569f52 100644 --- a/include/haproxy/xprt_quic-t.h +++ b/include/haproxy/xprt_quic-t.h @@ -727,11 +727,6 @@ struct quic_conn { /* Used only to reach the tasklet for the I/O handler from this quic_conn object. */ struct connection *conn; - /* Output buffer used during the handshakes. */ - struct { - unsigned char data[QUIC_PACKET_MAXLEN]; - unsigned char *pos; - } obuf; struct { /* The remaining frames to send. */ diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 60051d838..6e75501cb 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -4327,9 +4327,6 @@ static struct quic_conn *qc_new_conn(unsigned int version, int ipv4, } qc->mux_state = QC_MUX_NULL; - /* Initialize the output buffer */ - qc->obuf.pos = qc->obuf.data; - icid = new_quic_cid(&qc->cids, qc, 0); if (!icid) { TRACE_PROTO("Could not allocate a new connection ID", QUIC_EV_CONN_INIT, qc);