浏览代码

Merge pull request #14591 from mhilbrunner/patch-6

Small fix in stream_peer_openssl: missing break, formatting
Rémi Verschelde 7 年之前
父节点
当前提交
729af16aa9
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      modules/openssl/stream_peer_openssl.cpp

+ 6 - 2
modules/openssl/stream_peer_openssl.cpp

@@ -412,8 +412,12 @@ void StreamPeerOpenSSL::_print_error(int err) {
 
 	err = SSL_get_error(ssl, err);
 	switch (err) {
-		case SSL_ERROR_NONE: ERR_PRINT("NO ERROR: The TLS/SSL I/O operation completed"); break;
-		case SSL_ERROR_ZERO_RETURN: ERR_PRINT("The TLS/SSL connection has been closed.");
+		case SSL_ERROR_NONE:
+			ERR_PRINT("NO ERROR: The TLS/SSL I/O operation completed");
+			break;
+		case SSL_ERROR_ZERO_RETURN:
+			ERR_PRINT("The TLS/SSL connection has been closed.");
+			break;
 		case SSL_ERROR_WANT_READ:
 		case SSL_ERROR_WANT_WRITE:
 			ERR_PRINT("The operation did not complete.");