Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion programs/client/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,14 @@ catch (...)
#if USE_JWT_CPP && USE_SSL
void Client::login()
{
std::string host = hosts_and_ports.front().host;
/// hosts_and_ports is populated only from explicit --host. When the host
/// came from --connection or top-level <host> in config, it stays empty,
/// and hosts_and_ports.front() dereferences a null vector slot → SIGSEGV
/// in Client::main (upstream issue #103603). Fall back to the
/// config-derived value, which always exists by this point.
std::string host = !hosts_and_ports.empty()
? hosts_and_ports.front().host
: getClientConfiguration().getString("host", "");
std::string auth_url = getClientConfiguration().getString("oauth-url", "");
std::string client_id = getClientConfiguration().getString("oauth-client-id", "");
std::string audience = getClientConfiguration().getString("oauth-audience", "");
Expand Down
Loading