Skip to content

Commit

Permalink
Bug 1333937 - False start causes SSL_Forcehandshake to report success…
Browse files Browse the repository at this point in the history
… early, a=bustage
  • Loading branch information
martinthomson committed Jan 30, 2017
1 parent 741fd40 commit bca5946
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gtests/ssl_gtest/tls_agent.cc
Expand Up @@ -735,8 +735,10 @@ void TlsAgent::Handshake() {
LOGV("Handshake");
SECStatus rv = SSL_ForceHandshake(ssl_fd_);
if (rv == SECSuccess) {
EXPECT_EQ(STATE_CONNECTED, state_)
<< "the handshake callback should have been called already";
if (!falsestart_enabled_) {
EXPECT_EQ(STATE_CONNECTED, state_)
<< "the handshake callback should have been called already";
}

Poller::Instance()->Wait(READABLE_EVENT, adapter_, this,
&TlsAgent::ReadableCallback);
Expand Down

0 comments on commit bca5946

Please sign in to comment.