This commit is contained in:
Alexander Tokmakov 2023-01-24 01:30:26 +01:00
parent c6910f39b9
commit 6ddd76c5a0

View File

@ -1475,9 +1475,8 @@ void TCPHandler::receiveQuery()
session->authenticate(AlwaysAllowCredentials{client_info.initial_user}, client_info.initial_address); session->authenticate(AlwaysAllowCredentials{client_info.initial_user}, client_info.initial_address);
} }
#else #else
auto exception = Exception( auto exception = Exception(ErrorCodes::AUTHENTICATION_FAILED,
"Inter-server secret support is disabled, because ClickHouse was built without SSL library", "Inter-server secret support is disabled, because ClickHouse was built without SSL library");
ErrorCodes::AUTHENTICATION_FAILED);
session->onAuthenticationFailure(/* user_name */ std::nullopt, socket().peerAddress(), exception); session->onAuthenticationFailure(/* user_name */ std::nullopt, socket().peerAddress(), exception);
throw exception; /// NOLINT throw exception; /// NOLINT
#endif #endif