aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/levin.cpp
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2020-12-29 19:58:53 -0500
committerLee Clagett <code@leeclagett.com>2020-12-17 00:36:10 +0000
commit61b6e4cc67abd61a0dbffe271ee3f355b2e772bc (patch)
treeaa63b9684b9138a6f58f18678307d353aec67c10 /tests/unit_tests/levin.cpp
parentMerge pull request #7221 (diff)
downloadmonero-61b6e4cc67abd61a0dbffe271ee3f355b2e772bc.tar.xz
Add aggressive restrictions to pre-handshake p2p buffer limit
Diffstat (limited to 'tests/unit_tests/levin.cpp')
-rw-r--r--tests/unit_tests/levin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit_tests/levin.cpp b/tests/unit_tests/levin.cpp
index 2ad149afe..dc854ef0c 100644
--- a/tests/unit_tests/levin.cpp
+++ b/tests/unit_tests/levin.cpp
@@ -178,6 +178,7 @@ namespace
{
using base_type = epee::net_utils::connection_context_base;
static_cast<base_type&>(context_) = base_type{random_generator(), {}, is_incoming, false};
+ context_.m_state = cryptonote::cryptonote_connection_context::state_normal;
handler_.after_init_connection();
}