aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2021-03-21 16:27:16 -0400
committerLee Clagett <code@leeclagett.com>2021-01-28 17:53:47 +0000
commit2a2043470508aad3549ca1f3fab8766a3d204585 (patch)
treeee82e5ddc8925da4753a6bec7ae2c1bdfb0c7e62 /src
parentMerge pull request #7422 (diff)
downloadmonero-2a2043470508aad3549ca1f3fab8766a3d204585.tar.xz
Fix monerod --rpc-ssl disabled
Diffstat (limited to 'src')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 15b2a9bfd..0c6e2ec8f 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -335,7 +335,7 @@ namespace cryptonote
if (m_rpc_payment)
m_net_server.add_idle_handler([this](){ return m_rpc_payment->on_idle(); }, 60 * 1000);
- bool store_ssl_key = !restricted && rpc_config->ssl_options.auth.certificate_path.empty();
+ bool store_ssl_key = !restricted && rpc_config->ssl_options && rpc_config->ssl_options.auth.certificate_path.empty();
const auto ssl_base_path = (boost::filesystem::path{data_dir} / "rpc_ssl").string();
if (store_ssl_key && boost::filesystem::exists(ssl_base_path + ".crt"))
{