Переглянути джерело

Use safe_str_client() for service ID in log

Scrub the service ID in a warning log.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
David Goulet 9 роки тому
батько
коміт
b6e7b57d9a
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      src/or/rendservice.c

+ 2 - 1
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;
       }