Skip to content

Commit b091329

Browse files
achow101PastaPastaPasta
authored andcommitted
Merge bitcoin#29211: fuzz: fix connman initialization
e84dc36 fuzz: fix `connman` initialization (brunoerg) Pull request description: Fixes bitcoin#29172 (comment) ACKs for top commit: achow101: ACK e84dc36 Tree-SHA512: e5f3c378cfe367cc4c387fa1b13663a74d8b667a5d130d62919e21455861cfb9383b63ef4ebe56daab7b2c09e3b5031acc463065455f71607c5fb9e3c370d3ad
1 parent df42d41 commit b091329

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
@@ -39,7 +39,9 @@ FUZZ_TARGET_INIT(connman, initialize_connman)
3939
fuzzed_data_provider.ConsumeBool()};
4040

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

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

0 commit comments

Comments
 (0)