summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-06-08 14:52:44 +0100
committerMatt Caswell <matt@openssl.org>2022-08-18 16:38:13 +0100
commit222cf410d5e7bdd58dd50a0a3f1f0805707808ef (patch)
tree5505e71a7ee046d082b17de744d4af59c61d09e9 /ssl/ssl_lib.c
parenteddb067e2ce82bc2ea104b3ab5286fe334c0525d (diff)
Remove reliance on the SSL object from the DTLS read record layer code
Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18132)
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r--ssl/ssl_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 9e4d689c23..737550f050 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -665,7 +665,7 @@ int ossl_ssl_connection_reset(SSL *s)
* assign it.
*/
if (!ssl_set_new_record_layer(sc,
- TLS_ANY_VERSION,
+ SSL_CONNECTION_IS_DTLS(sc) ? DTLS_ANY_VERSION : TLS_ANY_VERSION,
OSSL_RECORD_DIRECTION_READ,
OSSL_RECORD_PROTECTION_LEVEL_NONE,
NULL, 0, NULL, 0, NULL, 0, NULL, 0,