diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2022-03-16 22:16:52 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2022-04-21 22:22:56 +0000 |
commit | 9209880e9cd90762f344dbfeb3464c9f7e758a4b (patch) | |
tree | 1504f849571910ca3481d14b72ca89851ce545ea /src/rpc | |
parent | Merge pull request #8254 (diff) | |
download | monero-9209880e9cd90762f344dbfeb3464c9f7e758a4b.tar.xz |
add a sanity check to RPC input data size
reported by m31007
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index bbcfa6168..869040657 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -365,6 +365,8 @@ namespace cryptonote std::move(rpc_config->access_control_origins), std::move(http_login), std::move(rpc_config->ssl_options) ); + m_net_server.get_config_object().m_max_content_length = MAX_RPC_CONTENT_LENGTH; + if (store_ssl_key && inited) { // new keys were generated, store for next run |