diff --git a/include/haproxy/receiver-t.h b/include/haproxy/receiver-t.h index 5b16770af..407c7be72 100644 --- a/include/haproxy/receiver-t.h +++ b/include/haproxy/receiver-t.h @@ -65,7 +65,6 @@ struct receiver { struct rx_settings *settings; /* points to the settings used by this receiver */ struct list proto_list; /* list in the protocol header */ #ifdef USE_QUIC - struct rxbuf **rxbufs; /* Array of buffers for RX (one by thread) */ struct mt_list rxbuf_list; /* The same as ->rxbufs but arranged in a list */ #endif /* warning: this struct is huge, keep it at the bottom */ diff --git a/src/proto_quic.c b/src/proto_quic.c index cf1e0ded1..63d635d94 100644 --- a/src/proto_quic.c +++ b/src/proto_quic.c @@ -540,10 +540,6 @@ static int quic_alloc_rxbufs_listener(struct listener *l) int i; struct rxbuf *rxbuf; - l->rx.rxbufs = calloc(global.nbthread, sizeof *l->rx.rxbufs); - if (!l->rx.rxbufs) - return 0; - MT_LIST_INIT(&l->rx.rxbuf_list); for (i = 0; i < global.nbthread; i++) { char *buf; @@ -559,8 +555,6 @@ static int quic_alloc_rxbufs_listener(struct listener *l) goto err; } - l->rx.rxbufs[i] = rxbuf; - rxbuf->buf = b_make(buf, QUIC_RX_BUFSZ, 0, 0); LIST_INIT(&rxbuf->dgrams); MT_LIST_APPEND(&l->rx.rxbuf_list, &rxbuf->mt_list); @@ -573,7 +567,6 @@ static int quic_alloc_rxbufs_listener(struct listener *l) pool_free(pool_head_quic_rxbuf, rxbuf->buf.area); free(rxbuf); } - free(l->rx.rxbufs); return 0; }