aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/netaddress.cpp
diff options
context:
space:
mode:
authorMartin Zumsande <mzumsande@gmail.com>2023-04-11 16:10:28 -0400
committerMartin Zumsande <mzumsande@gmail.com>2023-06-05 11:02:47 -0400
commite4d541c7cfa65da77e80e6786fdcb197ab50d04b (patch)
tree71de84b3ae920e10dbeb34612aa9a0dfa8ae2d9e /src/test/fuzz/netaddress.cpp
parent62d73f5370415f910c95a67b3d9f97bc85487bbe (diff)
downloadbitcoin-e4d541c7cfa65da77e80e6786fdcb197ab50d04b.tar.xz
net, refactor: pass reference for peer address in GetReachabilityFrom
The address of the peer always exists (because addr is a member of CNode), so it was not possible to pass a nullptr before. Also remove NET_UNKNOWN, which is unused now.
Diffstat (limited to 'src/test/fuzz/netaddress.cpp')
-rw-r--r--src/test/fuzz/netaddress.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/netaddress.cpp b/src/test/fuzz/netaddress.cpp
index 049ae02f4d..5141d3362d 100644
--- a/src/test/fuzz/netaddress.cpp
+++ b/src/test/fuzz/netaddress.cpp
@@ -84,7 +84,7 @@ FUZZ_TARGET(netaddress)
(void)CServiceHash(0, 0)(service);
const CNetAddr other_net_addr = ConsumeNetAddr(fuzzed_data_provider);
- (void)net_addr.GetReachabilityFrom(&other_net_addr);
+ (void)net_addr.GetReachabilityFrom(other_net_addr);
(void)sub_net.Match(other_net_addr);
const CService other_service{net_addr, fuzzed_data_provider.ConsumeIntegral<uint16_t>()};