diff options
author | Matt Caswell <matt@openssl.org> | 2020-06-12 10:52:41 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-06-30 10:54:02 +0100 |
commit | 32d738c9a2abeea5a709de9c33e4e6d6b87938bd (patch) | |
tree | c3ba00078758ce2764ddbec304e2bd02e82b2206 | |
parent | 943c6daa491cb248750da1625d3f65b73bc77130 (diff) |
Ensure that SSL_dup copies the min/max protocol version
With thanks to Rebekah Johnson for reporting this issue.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12245)
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 7c7e59789c..1d96eb4d3b 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -3824,6 +3824,8 @@ SSL *SSL_dup(SSL *s) goto err; ret->version = s->version; ret->options = s->options; + ret->min_proto_version = s->min_proto_version; + ret->max_proto_version = s->max_proto_version; ret->mode = s->mode; SSL_set_max_cert_list(ret, SSL_get_max_cert_list(s)); SSL_set_read_ahead(ret, SSL_get_read_ahead(s)); |