diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-04-16 21:37:21 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-04-16 21:37:21 +0000 |
commit | 362fbc79d276864c4b2b68ed9cf3bb8ba534985e (patch) | |
tree | de554cefaa860c8e384a5cbe955641ec2a7a77fc /src/or/router.c | |
parent | 97e1b68e43d728b3210889d75b9855d34f5147bf (diff) | |
download | tor-362fbc79d276864c4b2b68ed9cf3bb8ba534985e.tar.gz tor-362fbc79d276864c4b2b68ed9cf3bb8ba534985e.zip |
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/router.c')
-rw-r--r-- | src/or/router.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index 27c803159b..3c3255a49d 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -980,7 +980,8 @@ router_rebuild_descriptor(int force) ei->cache_info.signed_descriptor_digest); /* Now finish the router descriptor. */ - memcpy(ri->extra_info_digest, ei->cache_info.signed_descriptor_digest, + memcpy(ri->cache_info.extra_info_digest, + ei->cache_info.signed_descriptor_digest, DIGEST_LEN); ri->cache_info.signed_descriptor_body = tor_malloc(8192); if (router_dump_router_to_string(ri->cache_info.signed_descriptor_body, 8192, @@ -1258,7 +1259,7 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router, } base16_encode(extra_info_digest, sizeof(extra_info_digest), - router->extra_info_digest, DIGEST_LEN); + router->cache_info.extra_info_digest, DIGEST_LEN); /* Generate the easy portion of the router descriptor. */ result = tor_snprintf(s, maxlen, |