From: Tomas Mraz Date: Mon, 24 Mar 2025 09:53:02 +0000 (+0100) Subject: qlog_event_helpers.c: Fix inverted condition X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83b11af01738196b0ebde28a2f91df351c1c72fc;p=thirdparty%2Fopenssl.git qlog_event_helpers.c: Fix inverted condition We want to skip up to PACKET_remaining() and not "at least" PACKET_remaining() bytes. Reviewed-by: Paul Dale Reviewed-by: Neil Horman Reviewed-by: Tim Hudson Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/27138) --- diff --git a/ssl/quic/qlog_event_helpers.c b/ssl/quic/qlog_event_helpers.c index 55cc28d9f9b..190b6968fc0 100644 --- a/ssl/quic/qlog_event_helpers.c +++ b/ssl/quic/qlog_event_helpers.c @@ -542,7 +542,7 @@ static int log_frames(QLOG *qlog_instance, if (need_skip > 0) { size_t adv = need_skip; - if (adv < PACKET_remaining(&pkt)) + if (adv > PACKET_remaining(&pkt)) adv = PACKET_remaining(&pkt); if (!PACKET_forward(&pkt, adv))