diff options
author | Hugo Landau <hlandau@openssl.org> | 2022-10-12 17:44:40 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2022-11-07 18:18:34 +0000 |
commit | 6db5cb844852f8f13753caf26dea7750f701e4d9 (patch) | |
tree | 4dd847f22365ca6e7313739fd734849d7a1e6643 /ssl/quic/quic_txpim.c | |
parent | 0ede517cfa73fd3566d2ecd32215b4b12dd1d3b5 (diff) |
QUIC CFQ Fixes
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19206)
Diffstat (limited to 'ssl/quic/quic_txpim.c')
-rw-r--r-- | ssl/quic/quic_txpim.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ssl/quic/quic_txpim.c b/ssl/quic/quic_txpim.c index 9693758769..3a7662292b 100644 --- a/ssl/quic/quic_txpim.c +++ b/ssl/quic/quic_txpim.c @@ -34,6 +34,7 @@ struct quic_txpim_st { QUIC_TXPIM *ossl_quic_txpim_new(void) { QUIC_TXPIM *txpim = OPENSSL_zalloc(sizeof(*txpim)); + if (txpim == NULL) return NULL; @@ -198,7 +199,7 @@ static int compare(const void *a, const void *b) return 0; } -const QUIC_TXPIM_CHUNK *ossl_quic_txpim_pkt_get_chunks(QUIC_TXPIM_PKT *fpkt) +const QUIC_TXPIM_CHUNK *ossl_quic_txpim_pkt_get_chunks(const QUIC_TXPIM_PKT *fpkt) { QUIC_TXPIM_PKT_EX *ex = (QUIC_TXPIM_PKT_EX *)fpkt; @@ -214,14 +215,14 @@ const QUIC_TXPIM_CHUNK *ossl_quic_txpim_pkt_get_chunks(QUIC_TXPIM_PKT *fpkt) return ex->chunks; } -size_t ossl_quic_txpim_pkt_get_num_chunks(QUIC_TXPIM_PKT *fpkt) +size_t ossl_quic_txpim_pkt_get_num_chunks(const QUIC_TXPIM_PKT *fpkt) { QUIC_TXPIM_PKT_EX *ex = (QUIC_TXPIM_PKT_EX *)fpkt; return ex->num_chunks; } -size_t ossl_quic_txpim_get_in_use(QUIC_TXPIM *txpim) +size_t ossl_quic_txpim_get_in_use(const QUIC_TXPIM *txpim) { return txpim->in_use; } |