Now everything has been moved to the record layer the additional check
for setting up the read buffer is not needed and can be removed.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18132)
return OSSL_RECORD_RETURN_NON_FATAL_ERR;
rb = &rl->rbuf;
- /*
- * TODO(RECLAYER): Once this function is only called from inside the rlayer
- * directly, we can probably remove this since it is initialised in
- * tls_get_more_records
- */
- if (rb->buf == NULL) {
- if (!rlayer_setup_read_buffer(rl)) {
- /* RLAYERfatal() already called */
- return OSSL_RECORD_RETURN_FATAL;
- }
- }
-
left = rb->left;
#if defined(SSL3_ALIGN_PAYLOAD) && SSL3_ALIGN_PAYLOAD != 0
align = (size_t)rb->buf + SSL3_RT_HEADER_LENGTH;