summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-11 00:13:06 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-11 00:13:06 +0000
commit487f985f5b6213b81410c6cae49d12b14ebd979d (patch)
tree2dbb6692f30166e5ba3994b3dd648cde319d3fb6
parenta718fcb1c080f51b9d62886308f3f698a46032c6 (diff)
downloadtor-487f985f5b6213b81410c6cae49d12b14ebd979d.tar.gz
tor-487f985f5b6213b81410c6cae49d12b14ebd979d.zip
r15670@catbus: nickm | 2007-10-10 20:08:14 -0400
Restore a removed assert. svn:r11861
-rw-r--r--src/or/dirserv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 4040bf5b32..1707af2ac5 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -557,6 +557,7 @@ dirserv_add_multiple_descriptors(const char *desc, uint8_t purpose,
annotation_buf)) {
SMARTLIST_FOREACH(list, routerinfo_t *, ri, {
msg_out = NULL;
+ tor_assert(ri->purpose == purpose);
r_tmp = dirserv_add_descriptor(ri, &msg_out);
if (r_tmp < r) {
r = r_tmp;