aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-03-26 21:08:39 +0000
committerNick Mathewson <nickm@torproject.org>2008-03-26 21:08:39 +0000
commit944bd3dbed3de47aaa6fc98a121d66643e611af7 (patch)
tree4c69708ce2cd029d8dd9d36d2ab71d63427cd0ba /src/or/routerparse.c
parente9221f4a0d01bd6fb7761cdb76af9870575c002a (diff)
downloadtor-944bd3dbed3de47aaa6fc98a121d66643e611af7.tar
tor-944bd3dbed3de47aaa6fc98a121d66643e611af7.tar.gz
r19074@catbus: nickm | 2008-03-26 17:08:32 -0400
Start new address policies with refcount of 1, not 2. Backport candidate once tested more. svn:r14204
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 9bbeb66c3..7ff6c6311 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1652,18 +1652,20 @@ authority_cert_parse_from_string(const char *s, const char **end_of_string)
*end_of_string = eat_whitespace(eos);
}
SMARTLIST_FOREACH(tokens, directory_token_t *, t, token_free(t));
- if (area)
- memarea_drop_all(area);
smartlist_free(tokens);
+ if (area) {
+ DUMP_AREA(area, "authority cert");
+ memarea_drop_all(area);
+ }
return cert;
err:
authority_cert_free(cert);
SMARTLIST_FOREACH(tokens, directory_token_t *, t, token_free(t));
+ smartlist_free(tokens);
if (area) {
DUMP_AREA(area, "authority cert");
memarea_drop_all(area);
}
- smartlist_free(tokens);
return NULL;
}