[tor-commits] [tor/master] Move a comment in router_get_my_descriptor to the correct line

nickm at torproject.org nickm at torproject.org
Mon Dec 7 15:13:36 UTC 2015


commit 3461bcb10e1910d1bd46a887abe5bf3bd139f0d2
Author: teor (Tim Wilson-Brown) <teor2345 at gmail.com>
Date:   Fri Dec 4 18:13:29 2015 +1100

    Move a comment in router_get_my_descriptor to the correct line
---
 src/or/router.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/router.c b/src/or/router.c
index 9020345..bed9dc5 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;





More information about the tor-commits mailing list