Skip to content

Commit e84dc36

Browse files
committed
fuzz: fix connman initialization
1 parent 063a8b8 commit e84dc36

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)