mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
fuzz: fix connman
initialization
This commit is contained in:
parent
063a8b8387
commit
e84dc36733
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,9 @@ FUZZ_TARGET(connman, .init = initialize_connman)
|
|||
fuzzed_data_provider.ConsumeBool()};
|
||||
|
||||
const uint64_t max_outbound_limit{fuzzed_data_provider.ConsumeIntegral<uint64_t>()};
|
||||
connman.Init({ .nMaxOutboundLimit = max_outbound_limit });
|
||||
CConnman::Options options;
|
||||
options.nMaxOutboundLimit = max_outbound_limit;
|
||||
connman.Init(options);
|
||||
|
||||
CNetAddr random_netaddr;
|
||||
CNode random_node = ConsumeNode(fuzzed_data_provider);
|
||||
|
|
Loading…
Add table
Reference in a new issue