Fix sending draft_version.
Change-Id: I55ab20c3add6e504522f3bb7e75aeed7daa0aad7 Reviewed-on: https://boringssl-review.googlesource.com/8851 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
parent
e776cc2956
commit
3a28755bad
@ -1935,7 +1935,7 @@ static int ext_ec_point_add_serverhello(SSL *ssl, CBB *out) {
|
|||||||
static int ext_draft_version_add_clienthello(SSL *ssl, CBB *out) {
|
static int ext_draft_version_add_clienthello(SSL *ssl, CBB *out) {
|
||||||
uint16_t min_version, max_version;
|
uint16_t min_version, max_version;
|
||||||
if (!ssl_get_version_range(ssl, &min_version, &max_version) ||
|
if (!ssl_get_version_range(ssl, &min_version, &max_version) ||
|
||||||
max_version >= TLS1_3_VERSION) {
|
max_version < TLS1_3_VERSION) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user