]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Scrub service name in introduction circuit warning
authorJohn Brooks <special@torproject.org>
Mon, 21 Mar 2016 12:22:14 +0000 (19:22 +0700)
committerJohn Brooks <special@torproject.org>
Mon, 21 Mar 2016 12:23:28 +0000 (19:23 +0700)
Fixes bug 18600.

src/or/rendservice.c

index 09b20e34a4844ec5b7702d037dbc19e2e7b4dd06..39e58315896bb7cee516622c6608c2b6fff5699a 100644 (file)
@@ -2717,7 +2717,7 @@ rend_service_intro_has_opened(origin_circuit_t *circuit)
                 circuit->rend_data->rend_pk_digest);
   if (!service) {
     log_warn(LD_REND, "Unrecognized service ID %s on introduction circuit %u.",
-             serviceid, (unsigned)circuit->base_.n_circ_id);
+             safe_str_client(serviceid), (unsigned)circuit->base_.n_circ_id);
     reason = END_CIRC_REASON_NOSUCHSERVICE;
     goto err;
   }