diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-01-16 15:27:50 +0000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-07-05 09:02:26 +1000 |
commit | fe33e2c8c1a99b82509e1119235dd106118c3f84 (patch) | |
tree | 598c322cb18dd6c9299b81932afae2841addae28 /ssl/ssl_lib.c | |
parent | 82a2becab332c35b53c31d3f8a743fba66bef869 (diff) |
QUIC SSL: Buffer Management
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20061)
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 11f6cb2be9..036cc83ca0 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -6583,6 +6583,10 @@ int SSL_free_buffers(SSL *ssl) if (sc == NULL) return 0; + /* QUIC buffers are always 'in use'. */ + if (IS_QUIC_SSL(ssl)) + return 0; + rl = &sc->rlayer; return rl->rrlmethod->free_buffers(rl->rrl) @@ -6597,6 +6601,10 @@ int SSL_alloc_buffers(SSL *ssl) if (sc == NULL) return 0; + /* QUIC always has buffers allocated. */ + if (IS_QUIC_SSL(ssl)) + return 1; + rl = &sc->rlayer; return rl->rrlmethod->alloc_buffers(rl->rrl) |