Skip to content

Commit

Permalink
server::routing_context: add missing check in init_tls()
Browse files Browse the repository at this point in the history
While here, fix whitespace.
  • Loading branch information
Tectu committed Jul 9, 2022
1 parent d854e3a commit 72a03e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/malloy/server/routing_context.cpp
Expand Up @@ -39,12 +39,13 @@ routing_context::routing_context(config cfg) :
// Create the context
m_tls_ctx = tls::manager::make_context(cert_path, key_path);

return true;
return m_tls_ctx != nullptr;
}

bool routing_context::init_tls(const std::string& cert, const std::string& key)
{
m_tls_ctx = tls::manager::make_context(cert, key);

return m_tls_ctx != nullptr;
}
#endif

0 comments on commit 72a03e1

Please sign in to comment.