diff options
author | Matt Caswell <matt@openssl.org> | 2022-10-17 15:46:02 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-10-20 14:39:33 +0100 |
commit | e158ada6a74e5903354fdd5a6f56a32bbbba69fd (patch) | |
tree | 7e5df16b6dfdb022af0e0b9aa8fa564196a16274 /ssl/d1_lib.c | |
parent | faa3e66c27a5e88f048f3ed30cfca297eda13eb6 (diff) |
Remove the old buffer management code
We no longer use the old buffer management code now that it has all been
moved to the new record layer.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19424)
Diffstat (limited to 'ssl/d1_lib.c')
-rw-r--r-- | ssl/d1_lib.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index b82ddec517..a4ac629926 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -454,14 +454,12 @@ int DTLSv1_listen(SSL *ssl, BIO_ADDR *client) return -1; } - if (!ssl3_setup_buffers(s)) { - /* ERR_raise() already called */ - return -1; - } buf = OPENSSL_malloc(DTLS1_RT_HEADER_LENGTH + SSL3_RT_MAX_PLAIN_LENGTH); if (buf == NULL) return -1; - wbuf = RECORD_LAYER_get_wbuf(&s->rlayer)[0].buf; + wbuf = OPENSSL_malloc(DTLS1_RT_HEADER_LENGTH + SSL3_RT_MAX_PLAIN_LENGTH); + if (buf == NULL) + return -1; do { /* Get a packet */ @@ -836,6 +834,7 @@ int DTLSv1_listen(SSL *ssl, BIO_ADDR *client) end: BIO_ADDR_free(tmpclient); OPENSSL_free(buf); + OPENSSL_free(wbuf); return ret; } #endif |