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

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



commit b6e7b57d9ad7a756a12e90df1ff5c81cc6cb9acd
Author: David Goulet <dgoulet@xxxxxxxxx>
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@xxxxxxxxx>
---
 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;
       }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits