mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
remove some redundant code now that we compress exit policies
after parsing them svn:r6099
This commit is contained in:
parent
9479bd0275
commit
8db1e363c9
@ -1155,9 +1155,6 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
|
||||
return -1;
|
||||
written += result;
|
||||
}
|
||||
if (tmpe->msk == 0 && tmpe->prt_min <= 1 && tmpe->prt_max == 65535)
|
||||
/* This was a catch-all rule, so future rules are irrelevant. */
|
||||
break;
|
||||
} /* end for */
|
||||
if (written+256 > maxlen) /* Not enough room for signature. */
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user