Replace BUG_ON() for buffer alloc failure on h3_resp_headers_to_htx() by
proper error handling. An error status is reported which should be
sufficient to initiate connection closure.
No need to backport.
goto out;
}
- appbuf = qcc_get_stream_rxbuf(qcs);
- BUG_ON(!appbuf); /* TODO */
+ if (!(appbuf = qcc_get_stream_rxbuf(qcs))) {
+ TRACE_ERROR("buffer alloc failure", H3_EV_RX_FRAME|H3_EV_RX_HDR, qcs->qcc->conn, qcs);
+ len = -1;
+ goto out;
+ }
BUG_ON(!b_size(appbuf)); /* TODO */
htx = htx_from_buf(appbuf);