During counting of the unprocessed records, return code is treated in a
wrong way. This forces kTLS RX path to be skipped in case of presence
of unprocessed records.
CLA: trivial
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17492)
return -1;
/* Read until next record */
- if (PACKET_get_length_prefixed_2(&pkt, &subpkt))
+ if (!PACKET_get_length_prefixed_2(&pkt, &subpkt))
return -1;
count += 1;