From 2a2043470508aad3549ca1f3fab8766a3d204585 Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Sun, 21 Mar 2021 16:27:16 -0400 Subject: [PATCH] Fix monerod --rpc-ssl disabled --- src/rpc/core_rpc_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) {