summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;