From: Bernd Edlinger Date: Thu, 20 Mar 2025 16:14:51 +0000 (+0100) Subject: Try to fix reported qlog issues X-Git-Tag: openssl-3.4.2~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cb2c71015be1878d9237f1cff4b08300d87a76e;p=thirdparty%2Fopenssl.git Try to fix reported qlog issues Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27089) (cherry picked from commit 9f85a036e331d2837db604fc505062f7790a8b2b) --- diff --git a/ssl/quic/qlog_event_helpers.c b/ssl/quic/qlog_event_helpers.c index 190b6968fc0..148cf2f57b5 100644 --- a/ssl/quic/qlog_event_helpers.c +++ b/ssl/quic/qlog_event_helpers.c @@ -213,8 +213,10 @@ static int log_frame_actual(QLOG *qlog_instance, PACKET *pkt, size_t i; PACKET orig_pkt = *pkt; - if (!ossl_quic_wire_peek_frame_header(pkt, &frame_type, NULL)) + if (!ossl_quic_wire_peek_frame_header(pkt, &frame_type, NULL)) { + *need_skip = SIZE_MAX; return 0; + } /* * If something goes wrong decoding a frame we cannot log it as that frame