diff options
author | Hugo Landau <hlandau@openssl.org> | 2022-09-15 12:48:50 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2022-11-07 18:18:05 +0000 |
commit | 0ede517cfa73fd3566d2ecd32215b4b12dd1d3b5 (patch) | |
tree | 8e1b0fba1fd7bb883826178813b65569f7667e4d /ssl/quic/quic_cfq.c | |
parent | d77aea591650cd3bfe7c25cbb6955011bb21b416 (diff) |
QUIC FIFD
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_cfq.c')
-rw-r--r-- | ssl/quic/quic_cfq.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/quic/quic_cfq.c b/ssl/quic/quic_cfq.c index cdd621458c..0b0651289a 100644 --- a/ssl/quic/quic_cfq.c +++ b/ssl/quic/quic_cfq.c @@ -320,6 +320,9 @@ QUIC_CFQ_ITEM *ossl_quic_cfq_get_priority_head(QUIC_CFQ *cfq, uint32_t pn_space) for (; item != NULL && item->pn_space != pn_space; item = item->next); + if (item == NULL) + return NULL; /* ubsan */ + return &item->public; } @@ -335,5 +338,8 @@ QUIC_CFQ_ITEM *ossl_quic_cfq_item_get_priority_next(QUIC_CFQ_ITEM *item, for (; ex != NULL && ex->pn_space != pn_space; ex = ex->next); + if (ex == NULL) + return NULL; /* ubsan */ + return &ex->public; } |