aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-04 13:32:32 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-06 12:40:07 +0000
commit281b42a281f275b5cc4a5c49336a94cedd0e3ae5 (patch)
tree849efc84a8f2476de396414a6ab055e635cca048 /src/p2p/net_node.h
parentMerge pull request #7058 (diff)
downloadmonero-281b42a281f275b5cc4a5c49336a94cedd0e3ae5.tar.xz
p2p: fix race condition accessing a deleted context
Diffstat (limited to '')
-rw-r--r--src/p2p/net_node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h
index 87fec9994..709811b6a 100644
--- a/src/p2p/net_node.h
+++ b/src/p2p/net_node.h
@@ -287,7 +287,7 @@ namespace nodetool
uint32_t get_max_out_public_peers() const;
void change_max_in_public_peers(size_t count);
uint32_t get_max_in_public_peers() const;
- virtual bool block_host(const epee::net_utils::network_address &adress, time_t seconds = P2P_IP_BLOCKTIME);
+ virtual bool block_host(epee::net_utils::network_address address, time_t seconds = P2P_IP_BLOCKTIME);
virtual bool unblock_host(const epee::net_utils::network_address &address);
virtual bool block_subnet(const epee::net_utils::ipv4_network_subnet &subnet, time_t seconds = P2P_IP_BLOCKTIME);
virtual bool unblock_subnet(const epee::net_utils::ipv4_network_subnet &subnet);