]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add (void) cast to result of ossl_quic_rxfc_on_retire()
authorMrRurikov <96385824+MrRurikov@users.noreply.github.com>
Thu, 4 Jul 2024 08:20:27 +0000 (11:20 +0300)
committerTomas Mraz <tomas@openssl.org>
Mon, 8 Jul 2024 16:17:15 +0000 (18:17 +0200)
Return value of function 'ossl_quic_rxfc_on_retire', called at
quic_stream_map.c:767, is not checked, but it is usually checked
for this function.

CLA: trivial

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24794)

ssl/quic/quic_stream_map.c

index c836721f78170d05468b607895915aded56a28dd..64700b09d95e0a4dab2bc0b665cc12a7e49f534d 100644 (file)
@@ -764,7 +764,7 @@ void ossl_quic_stream_map_remove_from_accept_queue(QUIC_STREAM_MAP *qsm,
         --qsm->num_accept_uni;
 
     if ((max_streams_rxfc = qsm_get_max_streams_rxfc(qsm, s)) != NULL)
-        ossl_quic_rxfc_on_retire(max_streams_rxfc, 1, rtt);
+        (void)ossl_quic_rxfc_on_retire(max_streams_rxfc, 1, rtt);
 }
 
 size_t ossl_quic_stream_map_get_accept_queue_len(QUIC_STREAM_MAP *qsm, int is_uni)