From c8e2a051ac62f2d29fdcd4d01ca6ea40afb105f9 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 11 Mar 2006 17:52:55 +0000 Subject: [PATCH] huge warning sign for esc_router_info() svn:r6124 --- src/or/routerlist.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/or/routerlist.c b/src/or/routerlist.c index b4b35a5514..49a8142ed3 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3792,6 +3792,14 @@ routerlist_assert_ok(routerlist_t *rl) } } +/** Allocate and return a new string representing the contact info + * and platform string for router, + * surrounded by quotes and using standard C escapes. + * + * THIS FUNCTION IS NOT REENTRANT. Don't call it from outside the main + * thread. Also, each call invalidates the last-returned value, so don't + * try log_warn(LD_GENERAL, "%s %s", esc_router_info(a), esc_router_info(b)); + */ const char * esc_router_info(routerinfo_t *router) {