mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Remove a redundant condition in compare_addr_to_node_policy
A && A == A. Found by frosty_un
This commit is contained in:
parent
a4d339cf08
commit
7dcd105be3
@ -1490,7 +1490,7 @@ compare_tor_addr_to_node_policy(const tor_addr_t *addr, uint16_t port,
|
||||
|
||||
if (node->ri)
|
||||
return compare_tor_addr_to_addr_policy(addr, port, node->ri->exit_policy);
|
||||
else if (node->md && node->md) {
|
||||
else if (node->md) {
|
||||
if (node->md->exit_policy == NULL)
|
||||
return ADDR_POLICY_REJECTED;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user