diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 0ad80f41ea6..1b0e3f26113 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -2808,6 +2808,12 @@ namespace cryptonote } else { + if (!i->ip) + { + error_resp.code = CORE_RPC_ERROR_CODE_WRONG_PARAM; + error_resp.message = "No ip/host supplied"; + return false; + } na = epee::net_utils::ipv4_network_address{i->ip, 0}; } if (i->ban)