aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-04-16 21:37:21 +0000
committerNick Mathewson <nickm@torproject.org>2007-04-16 21:37:21 +0000
commit362fbc79d276864c4b2b68ed9cf3bb8ba534985e (patch)
treede554cefaa860c8e384a5cbe955641ec2a7a77fc /src/or/dirserv.c
parent97e1b68e43d728b3210889d75b9855d34f5147bf (diff)
downloadtor-362fbc79d276864c4b2b68ed9cf3bb8ba534985e.tar
tor-362fbc79d276864c4b2b68ed9cf3bb8ba534985e.tar.gz
r12414@catbus: nickm | 2007-04-16 17:37:17 -0400
More proposal-104 stuff: actually remember extra-info stuff. svn:r9975
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index e8811c0d0..415810ebf 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -562,9 +562,7 @@ dirserv_add_descriptor(const char *desc, const char **msg)
extrainfo_free(ei);
return -1;
}
- /* XXXX020 Eventually, we should store this. For now, we'll just
- * discard it. */
- extrainfo_free(ei);
+ router_add_extrainfo_to_routerlist(ei, msg, 0, 0);
return 2;
}
@@ -2115,11 +2113,11 @@ connection_dirserv_add_servers_to_outbuf(dir_connection_t *conn)
routerinfo_t *ri = router_get_by_digest(fp);
if (ri &&
ri->cache_info.published_on > publish_cutoff) {
- if (extra) {
- sd = extrainfo_get_by_descriptor_digest(ri->extra_info_digest);
- } else {
+ if (extra)
+ sd = extrainfo_get_by_descriptor_digest(
+ ri->cache_info.extra_info_digest);
+ else
sd = &ri->cache_info;
- }
}
}
} else {