]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use safe_str_client() for service ID in log
authorDavid Goulet <dgoulet@ev0ke.net>
Mon, 11 May 2015 20:19:16 +0000 (16:19 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 14 May 2015 14:26:57 +0000 (10:26 -0400)
Scrub the service ID in a warning log.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
src/or/rendservice.c

index 0a984f14470a56d54ba989d1b565908f541ed7b3..b454a88c1be8d82ddc6799519f77107edbdea2f3 100644 (file)
@@ -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;
       }