mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Use safe_str in channel_dumpstats: improve 12184 diagnostic
This commit is contained in:
parent
f6a776d915
commit
486bd4fae7
@ -19,6 +19,7 @@
|
||||
#include "circuitbuild.h"
|
||||
#include "circuitlist.h"
|
||||
#include "circuitstats.h"
|
||||
#include "config.h"
|
||||
#include "connection_or.h" /* For var_cell_free() */
|
||||
#include "circuitmux.h"
|
||||
#include "entrynodes.h"
|
||||
@ -3277,9 +3278,9 @@ channel_dump_statistics(channel_t *chan, int severity)
|
||||
" is %s, and gives a canonical description of \"%s\" and an "
|
||||
"actual description of \"%s\"",
|
||||
U64_PRINTF_ARG(chan->global_identifier),
|
||||
remote_addr_str,
|
||||
channel_get_canonical_remote_descr(chan),
|
||||
actual);
|
||||
safe_str(remote_addr_str),
|
||||
safe_str(channel_get_canonical_remote_descr(chan)),
|
||||
safe_str(actual));
|
||||
tor_free(remote_addr_str);
|
||||
tor_free(actual);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user