Skip to content

Commit 507dbe4

Browse files
committed
Merge bitcoin/bitcoin#29211: fuzz: fix connman initialization
e84dc36 fuzz: fix `connman` initialization (brunoerg) Pull request description: Fixes bitcoin/bitcoin#29172 (comment) ACKs for top commit: achow101: ACK e84dc36 Tree-SHA512: e5f3c378cfe367cc4c387fa1b13663a74d8b667a5d130d62919e21455861cfb9383b63ef4ebe56daab7b2c09e3b5031acc463065455f71607c5fb9e3c370d3ad
2 parents 7ff8e6b + e84dc36 commit 507dbe4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/fuzz/connman.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ FUZZ_TARGET(connman, .init = initialize_connman)
4040
fuzzed_data_provider.ConsumeBool()};
4141

4242
const uint64_t max_outbound_limit{fuzzed_data_provider.ConsumeIntegral<uint64_t>()};
43-
connman.Init({ .nMaxOutboundLimit = max_outbound_limit });
43+
CConnman::Options options;
44+
options.nMaxOutboundLimit = max_outbound_limit;
45+
connman.Init(options);
4446

4547
CNetAddr random_netaddr;
4648
CNode random_node = ConsumeNode(fuzzed_data_provider);

0 commit comments

Comments
 (0)