diff options
author | Matt Caswell <matt@openssl.org> | 2020-06-12 10:52:41 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-06-23 12:46:47 +0100 |
commit | f12dd99170c1bbcd4a503fe2e615d6a3f0900d1d (patch) | |
tree | b4170de068346a181e98c3ec9831554269051616 /ssl | |
parent | e3d6dc59fb3689f92d890a20fb5e1e5588dc95b8 (diff) | |
download | openssl-f12dd99170c1bbcd4a503fe2e615d6a3f0900d1d.tar.gz |
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/12180)
Diffstat (limited to 'ssl')
-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 cee888944d..f7544ab402 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -4006,6 +4006,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)); |