mirror of
https://github.com/monero-project/monero.git
synced 2025-08-15 06:15:38 -04:00
validate ip parameter in set_bans rpc call
This commit is contained in:
parent
7fb0d2f48d
commit
936046f71b
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue