[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] huge warning sign for esc_router_info()



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	routerlist.c 
Log Message:
huge warning sign for esc_router_info()


Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.451
retrieving revision 1.452
diff -u -p -d -r1.451 -r1.452
--- routerlist.c	11 Mar 2006 02:21:30 -0000	1.451
+++ routerlist.c	11 Mar 2006 17:52:55 -0000	1.452
@@ -3792,6 +3792,14 @@ routerlist_assert_ok(routerlist_t *rl)
   }
 }
 
+/** Allocate and return a new string representing the contact info
+ * and platform string for <b>router</b>,
+ * 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)
 {