Browse Source

Fixed missing TLS state change on handshake failure with OpenSSL

Paul-Louis Ageneau 2 years ago
parent
commit
bcb171ee95
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/impl/tlstransport.cpp

+ 1 - 0
src/impl/tlstransport.cpp

@@ -487,6 +487,7 @@ void TlsTransport::runRecvLoop() {
 		recv(nullptr);
 	} else {
 		PLOG_ERROR << "TLS handshake failed";
+		changeState(State::Failed);
 	}
 }