aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-05-20 02:42:50 +0000
committerNick Mathewson <nickm@torproject.org>2004-05-20 02:42:50 +0000
commit80365b989749efbeca6202156197321706462e4d (patch)
tree1c221f99fd895bf540df162f8d7d2f2fa0950de9 /src/or/routerlist.c
parent80be19d9da9e02deac29c7fb685559446d881b0b (diff)
downloadtor-80365b989749efbeca6202156197321706462e4d.tar
tor-80365b989749efbeca6202156197321706462e4d.tar.gz
Allow multiple exit policy lines; mostly add support for AP policies
svn:r1905
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 7c0fbaf33..17ba4a1fc 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -232,8 +232,6 @@ void router_get_routerlist(routerlist_t **prouterlist) {
/** Free all storage held by <b>router</b>. */
void routerinfo_free(routerinfo_t *router)
{
- struct exit_policy_t *e;
-
if (!router)
return;
@@ -244,12 +242,7 @@ void routerinfo_free(routerinfo_t *router)
crypto_free_pk_env(router->onion_pkey);
if (router->identity_pkey)
crypto_free_pk_env(router->identity_pkey);
- while (router->exit_policy) {
- e = router->exit_policy;
- router->exit_policy = e->next;
- tor_free(e->string);
- free(e);
- }
+ exit_policy_free(router->exit_policy);
free(router);
}