Skip to content
Permalink
Browse files

Check for NULL connection context

  • Loading branch information...
hyc committed Jun 16, 2019
1 parent f87816a commit 2039d4afdfe3a93168636a79159e5c5f6506f619
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rpc/core_rpc_server.cpp
@@ -165,7 +165,7 @@ namespace cryptonote
//------------------------------------------------------------------------------------------------------------------------------
bool core_rpc_server::add_host_fail(const connection_context *ctx)
{
if(!ctx->m_remote_address.is_blockable())
if(!ctx || !ctx->m_remote_address.is_blockable())
return false;

CRITICAL_REGION_LOCAL(m_host_fails_score_lock);

0 comments on commit 2039d4a

Please sign in to comment.
You can’t perform that action at this time.