Ignore ping deadline when calculating tick deadline if we can't send
authorMatt Caswell <matt@openssl.org>
Tue, 17 Oct 2023 13:55:48 +0000 (14:55 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 19 Oct 2023 09:54:44 +0000 (11:54 +0200)
commit098f27f9ef8be2a418f76896ee3c824e8709fcf7
tree55eafe5080d00b64ad3d1a25e2e1035f7b276029
parent56e303259ed48884c914fe24b354e9cc7b7532c3
Ignore ping deadline when calculating tick deadline if we can't send

If the CC TX allowance is zero then we cannot send a PING frame at the
moment, so do not take into account the ping deadline when calculating the
tick deadline in that case.

This avoids the hang found by the fuzzer mentioned in
https://github.com/openssl/openssl/pull/22368#issuecomment-1765131727

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22410)
ssl/quic/quic_channel.c