From c21b2b3121a220b4a4402ab795007674d77dd488 Mon Sep 17 00:00:00 2001 From: Jakub Adam Date: Mon, 11 Feb 2019 17:22:58 +0100 Subject: agent: don't print TURN password unless the logging is verbose Limits accidental leakage of secret information. --- agent/agent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/agent.c b/agent/agent.c index e918c03..0962b74 100644 --- a/agent/agent.c +++ b/agent/agent.c @@ -2702,7 +2702,8 @@ nice_agent_set_relay_info(NiceAgent *agent, nice_debug ("Agent %p: added relay server [%s]:%d of type %d to s/c %d/%d " "with user/pass : %s -- %s", agent, server_ip, server_port, type, - stream_id, component_id, username, password); + stream_id, component_id, username, + nice_debug_is_verbose() ? password : "****"); component->turn_servers = g_list_append (component->turn_servers, turn); -- cgit v1.2.1