Skip to content
Permalink
Browse files
Escape transport proxy stderr output lines
Use escaped() for every line of transport proxy stderr output that
we log.

This is for #9957.
  • Loading branch information
wfn committed Apr 17, 2014
1 parent 527ea5a commit cfd4f7e22f0db68f14e343d971f2b4109da4423a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/or/transports.c
@@ -635,8 +635,8 @@ configure_proxy(managed_proxy_t *mp)
SMARTLIST_FOREACH_BEGIN(proxy_err_output, const char *, line) {
/* Should we expect any output from stderr to contribute to the proxy
* config process? (We assume not.) */
log_info(LD_GENERAL, "Managed proxy '%s' says (over stderr): '%s'",
mp->argv[0], line);
log_info(LD_GENERAL, "Managed proxy '%s' says (over stderr): %s",
mp->argv[0], escaped(line));
/* (If we want to just output this stream in one go, we may use
* get_string_from_pipe() - but this works, too.) */
} SMARTLIST_FOREACH_END(line);

0 comments on commit cfd4f7e

Please sign in to comment.