diff --git a/src/test/fuzz/connman.cpp b/src/test/fuzz/connman.cpp index 66f1e19b651..8f5f6a60710 100644 --- a/src/test/fuzz/connman.cpp +++ b/src/test/fuzz/connman.cpp @@ -40,7 +40,9 @@ FUZZ_TARGET(connman, .init = initialize_connman) fuzzed_data_provider.ConsumeBool()}; const uint64_t max_outbound_limit{fuzzed_data_provider.ConsumeIntegral()}; - 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);