aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-03-22 20:19:32 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-03-22 20:19:32 -0400
commitdcba757dd283a3396120f0df90fe746e3ec02292 (patch)
tree9d434db262d9274f372d51da854190aa41779176 /src/rpc
parentMerge pull request #7618 (diff)
parentFix monerod --rpc-ssl disabled (diff)
downloadmonero-dcba757dd283a3396120f0df90fe746e3ec02292.tar.xz
Merge pull request #7619
2a20434 Fix monerod --rpc-ssl disabled (Lee Clagett)
Diffstat (limited to 'src/rpc')
-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"))
{