summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-04 18:13:29 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-07 16:10:37 +1100
commit3461bcb10e1910d1bd46a887abe5bf3bd139f0d2 (patch)
tree6512336ea450ef3f29c6a10f6fdef2585d676e32 /src/or
parentfb3e862b8690101276cf2dfe8a5fc2dfb69fb71f (diff)
downloadtor-3461bcb10e1910d1bd46a887abe5bf3bd139f0d2.tar.gz
tor-3461bcb10e1910d1bd46a887abe5bf3bd139f0d2.zip
Move a comment in router_get_my_descriptor to the correct line
Diffstat (limited to 'src/or')
-rw-r--r--src/or/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 90203458b2..bed9dc5e43 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1781,9 +1781,9 @@ router_get_my_descriptor(void)
const char *body;
if (!router_get_my_routerinfo())
return NULL;
- /* Make sure this is nul-terminated. */
tor_assert(desc_routerinfo->cache_info.saved_location == SAVED_NOWHERE);
body = signed_descriptor_get_body(&desc_routerinfo->cache_info);
+ /* Make sure this is nul-terminated. */
tor_assert(!body[desc_routerinfo->cache_info.signed_descriptor_len]);
log_debug(LD_GENERAL,"my desc is '%s'", body);
return body;