mirror of
https://github.com/monero-project/monero.git
synced 2025-01-03 09:29:42 +00:00
validate ip parameter in set_bans rpc call
This commit is contained in:
parent
941ecefab2
commit
9311a24044
1 changed files with 6 additions and 0 deletions
|
@ -2875,6 +2875,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)
|
||||
|
|
Loading…
Reference in a new issue