mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Fix the router_compare_to_my_exit_policy assertion failure once-and-for-all, by declaring 0.0.0.0 always denied.
svn:r2017
This commit is contained in:
parent
88451ce25b
commit
e9d81d873b
@ -381,8 +381,13 @@ static void router_add_exit_policy_from_config(routerinfo_t *router) {
|
||||
int router_compare_to_my_exit_policy(connection_t *conn)
|
||||
{
|
||||
tor_assert(desc_routerinfo);
|
||||
tor_assert(conn->addr); /* make sure it's resolved to something. this
|
||||
way we can't get a 'maybe' below. */
|
||||
|
||||
/* make sure it's resolved to something. this way we can't get a
|
||||
'maybe' below. */
|
||||
if (!conn->addr)
|
||||
return -1;
|
||||
|
||||
tor_assert(conn->addr);
|
||||
|
||||
return router_compare_addr_to_exit_policy(conn->addr, conn->port,
|
||||
desc_routerinfo->exit_policy);
|
||||
|
Loading…
Reference in New Issue
Block a user