From: Frédéric Lécaille Date: Sat, 21 May 2022 20:36:08 +0000 (+0200) Subject: CLEANUP: quic: No more used handshake output buffer X-Git-Tag: v2.6.0~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57ac3faed7ac8384800c71b833475f15107d0f4c;p=thirdparty%2Fhaproxy.git CLEANUP: quic: No more used handshake output buffer ->obuf quic_conn struct member is no more used. --- diff --git a/include/haproxy/xprt_quic-t.h b/include/haproxy/xprt_quic-t.h index a975b17825..bb7569f525 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 60051d8385..6e75501cbc 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);