mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
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 <ppzgs1@gmail.com> Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/27138)
This commit is contained in:
parent
3c1f50ad6f
commit
83b11af017
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user