diff options
author | Dmytro Podgornyi <dmytrop@nvidia.com> | 2022-01-12 19:25:23 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2022-01-17 13:15:56 +1100 |
commit | d73a7a3a71270aaadb4e4e678ae9bd3cef8b9cbd (patch) | |
tree | 92c5b0ee313d8d290f6daa9cb7f278254d61acef /ssl/t1_enc.c | |
parent | 57645339ab645fe5abffe14fc005b5402ce03b84 (diff) |
ssl/t1_enc: Fix kTLS RX offload path
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)
Diffstat (limited to 'ssl/t1_enc.c')
-rw-r--r-- | ssl/t1_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 51688d4f2e..101cba6490 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -122,7 +122,7 @@ static int count_unprocessed_records(SSL *s) 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; |