Skip to content
Snippets Groups Projects
Commit 5c18c980 authored by Simon Désaulniers's avatar Simon Désaulniers Committed by Adrien Béraud
Browse files

c/opendht: check for server_ca null

parent b8d6fdc8
No related branches found
No related tags found
No related merge requests found
......@@ -348,7 +348,8 @@ int dht_runner_run_config(dht_runner* r, in_port_t port, const dht_runner_config
config.proxy_user_agent = conf->proxy_user_agent ? std::string(conf->proxy_user_agent) : std::string{};
config.peer_discovery = conf->peer_discovery;
config.peer_publish = conf->peer_publish;
config.server_ca = *reinterpret_cast<const CertSp*>(conf->server_ca);
if (conf->server_ca)
config.server_ca = *reinterpret_cast<const CertSp*>(conf->server_ca);
config.client_identity = dht_identity_from_c(&conf->client_identity);
dht::DhtRunner::Context context;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment