Move early_data_accepted to ssl->s3. This is connection state, not configuration, so it must live on ssl->s3, otherwise SSL_clear will be confused. Change-Id: Id7c87ced5248d3953e37946e2d0673d66bfedb08 Reviewed-on: https://boringssl-review.googlesource.com/24264 Commit-Queue: Steven Valdez <svaldez@google.com> Reviewed-by: Steven Valdez <svaldez@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
diff --git a/ssl/ssl_lib.cc b/ssl/ssl_lib.cc index 6da081e..af4ffc4 100644 --- a/ssl/ssl_lib.cc +++ b/ssl/ssl_lib.cc
@@ -1187,7 +1187,7 @@ } int SSL_early_data_accepted(const SSL *ssl) { - return ssl->early_data_accepted; + return ssl->s3->early_data_accepted; } void SSL_reset_early_data_reject(SSL *ssl) {