mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
fuzz: Use ConsumeWeakEnum in addrman for service flags
This commit is contained in:
parent
3530d5d2d8
commit
55554463c1
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ FUZZ_TARGET_INIT(addrman, initialize_addrman)
|
|||
[&] {
|
||||
const std::optional<CService> opt_service = ConsumeDeserializable<CService>(fuzzed_data_provider);
|
||||
if (opt_service) {
|
||||
addr_man.SetServices(*opt_service, ServiceFlags{fuzzed_data_provider.ConsumeIntegral<uint64_t>()});
|
||||
addr_man.SetServices(*opt_service, ConsumeWeakEnum(fuzzed_data_provider, ALL_SERVICE_FLAGS));
|
||||
}
|
||||
},
|
||||
[&] {
|
||||
|
|
Loading…
Add table
Reference in a new issue