Skip to content

Commit bdb6209

Browse files
committed
fuzz: reduce possible networks check
If an address classifies as `IsRFC4193()`, then it cannot be `NET_ONION` (Tor v3), thus remove that condition from the assert.
1 parent a164cd3 commit bdb6209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/fuzz/netaddress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ FUZZ_TARGET(netaddress)
5454
(void)net_addr.IsRFC3927();
5555
(void)net_addr.IsRFC3964();
5656
if (net_addr.IsRFC4193()) {
57-
assert(net_addr.GetNetwork() == Network::NET_ONION || net_addr.GetNetwork() == Network::NET_INTERNAL || net_addr.GetNetwork() == Network::NET_UNROUTABLE);
57+
assert(net_addr.GetNetwork() == Network::NET_INTERNAL || net_addr.GetNetwork() == Network::NET_UNROUTABLE);
5858
}
5959
(void)net_addr.IsRFC4380();
6060
(void)net_addr.IsRFC4843();

0 commit comments

Comments
 (0)