fuzz: fix connman initialization

This commit is contained in:
brunoerg 2024-01-09 15:15:36 -03:00
parent 063a8b8387
commit e84dc36733

View file

@ -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);