mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-05 09:21:01 +02:00
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.
This commit is contained in:
parent
a164cd3ba6
commit
bdb62096f0
@ -54,7 +54,7 @@ FUZZ_TARGET(netaddress)
|
|||||||
(void)net_addr.IsRFC3927();
|
(void)net_addr.IsRFC3927();
|
||||||
(void)net_addr.IsRFC3964();
|
(void)net_addr.IsRFC3964();
|
||||||
if (net_addr.IsRFC4193()) {
|
if (net_addr.IsRFC4193()) {
|
||||||
assert(net_addr.GetNetwork() == Network::NET_ONION || net_addr.GetNetwork() == Network::NET_INTERNAL || net_addr.GetNetwork() == Network::NET_UNROUTABLE);
|
assert(net_addr.GetNetwork() == Network::NET_INTERNAL || net_addr.GetNetwork() == Network::NET_UNROUTABLE);
|
||||||
}
|
}
|
||||||
(void)net_addr.IsRFC4380();
|
(void)net_addr.IsRFC4380();
|
||||||
(void)net_addr.IsRFC4843();
|
(void)net_addr.IsRFC4843();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user