[tor-commits] [tor/master] Use safe_str_client() for service ID in log

nickm at torproject.org nickm at torproject.org
Thu May 14 14:27:06 UTC 2015


commit b6e7b57d9ad7a756a12e90df1ff5c81cc6cb9acd
Author: David Goulet <dgoulet at ev0ke.net>
Date:   Mon May 11 16:19:16 2015 -0400

    Use safe_str_client() for service ID in log
    
    Scrub the service ID in a warning log.
    
    Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
 src/or/rendservice.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 0a984f1..b454a88 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -3551,7 +3551,8 @@ rend_services_introduce(void)
         log_warn(LD_REND,
                  "Could only establish %d introduction points for %s; "
                  "wanted %u.",
-                 smartlist_len(service->intro_nodes), service->service_id,
+                 smartlist_len(service->intro_nodes),
+                 safe_str_client(service->service_id),
                  n_intro_points_to_open);
         break;
       }





More information about the tor-commits mailing list