summaryrefslogtreecommitdiff
path: root/src/or/microdesc.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-01 18:12:30 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-01 18:14:28 -0400
commit1bb9734e3a745e2a16b58512f47a6db1229a2b75 (patch)
tree0ad06edda894e83b3f99dc946d34555014c04ce8 /src/or/microdesc.c
parent42acef68ad6fbe462a00815fbccf94c817931e8f (diff)
downloadtor-1bb9734e3a745e2a16b58512f47a6db1229a2b75.tar.gz
tor-1bb9734e3a745e2a16b58512f47a6db1229a2b75.zip
Implement policies for nodes (and for microdescriptors too)
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r--src/or/microdesc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index c3511cf324..0a4c8ea4c7 100644
--- a/src/or/microdesc.c
+++ b/src/or/microdesc.c
@@ -4,12 +4,13 @@
#include "or.h"
#include "config.h"
#include "directory.h"
+#include "dirserv.h"
#include "microdesc.h"
-#include "nodelist.h"
-#include "routerparse.h"
#include "networkstatus.h"
+#include "nodelist.h"
+#include "policies.h"
#include "routerlist.h"
-#include "dirserv.h"
+#include "routerparse.h"
/** A data structure to hold a bunch of cached microdescriptors. There are
* two active files in the cache: a "cache file" that we mmap, and a "journal
@@ -458,7 +459,7 @@ microdesc_free(microdesc_t *md)
SMARTLIST_FOREACH(md->family, char *, cp, tor_free(cp));
smartlist_free(md->family);
}
- tor_free(md->exitsummary);
+ short_policy_free(md->exit_policy);
tor_free(md);
}