summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/socket/ssl_client_socket_nss.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket/ssl_client_socket_nss.cc b/net/socket/ssl_client_socket_nss.cc
index 2c703d6..311b054 100644
--- a/net/socket/ssl_client_socket_nss.cc
+++ b/net/socket/ssl_client_socket_nss.cc
@@ -773,7 +773,7 @@ void SSLClientSocketNSS::OnHandshakeIOComplete(int result) {
void SSLClientSocketNSS::OnSendComplete(int result) {
EnterFunction(result);
- if (next_handshake_state_ != STATE_NONE) {
+ if (next_handshake_state_ == STATE_HANDSHAKE) {
// In handshake phase.
OnHandshakeIOComplete(result);
LeaveFunction("");
@@ -805,7 +805,7 @@ void SSLClientSocketNSS::OnSendComplete(int result) {
void SSLClientSocketNSS::OnRecvComplete(int result) {
EnterFunction(result);
- if (next_handshake_state_ != STATE_NONE) {
+ if (next_handshake_state_ == STATE_HANDSHAKE) {
// In handshake phase.
OnHandshakeIOComplete(result);
LeaveFunction("");