From 4428704b2fd9168e5a584323c733e9b107f2ea7c Mon Sep 17 00:00:00 2001 From: samuel40791765 Date: Wed, 6 Nov 2024 03:00:41 +0000 Subject: [PATCH] is_post_v2 --- ssl/ssl_transfer_asn1.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/ssl_transfer_asn1.cc b/ssl/ssl_transfer_asn1.cc index 1cc7063622..e2f1640741 100644 --- a/ssl/ssl_transfer_asn1.cc +++ b/ssl/ssl_transfer_asn1.cc @@ -536,11 +536,11 @@ static int SSL3_STATE_from_bytes(SSL *ssl, CBS *cbs, const SSL_CTX *ctx) { return 0; } - bool is_v2 = (serde_version >= SSL3_STATE_SERDE_VERSION_TWO); + bool is_post_v2 = (serde_version >= SSL3_STATE_SERDE_VERSION_TWO); // We should have no more data at this point if we are deserializing v1 // encoding. - if (!is_v2 && CBS_len(&s3) > 0) { + if (!is_post_v2 && CBS_len(&s3) > 0) { OPENSSL_PUT_ERROR(SSL, SSL_R_SERIALIZATION_INVALID_SSL3_STATE); return 0; }