diff options
author | Matt Caswell <matt@openssl.org> | 2023-04-25 14:04:06 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-04-27 17:03:33 +0100 |
commit | 73bac6e28014bfecc322c67aa8b09077e34da299 (patch) | |
tree | 75c8409320412f8366096952df52c7e9d8073223 /ssl/record | |
parent | 79ee017220651d50d345af0e3093f091d5155890 (diff) |
Ensure that the SSL_rstate_string*() API works as they used to
We initialise the record layer rstate variable to ensure the
SSL_rstate_string*() APIs return values that are consistent with
previous versions.
Fixes #20808
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20827)
Diffstat (limited to 'ssl/record')
-rw-r--r-- | ssl/record/methods/tls_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/record/methods/tls_common.c b/ssl/record/methods/tls_common.c index a93bd91daf..4cfeddca43 100644 --- a/ssl/record/methods/tls_common.c +++ b/ssl/record/methods/tls_common.c @@ -1296,6 +1296,7 @@ tls_int_new_record_layer(OSSL_LIB_CTX *libctx, const char *propq, int vers, rl->md = md; rl->alert = SSL_AD_NO_ALERT; + rl->rstate = SSL_ST_READ_HEADER; if (level == OSSL_RECORD_PROTECTION_LEVEL_NONE) rl->is_first_record = 1; |