diff options
author | Jakub Adam <jakub.adam@collabora.com> | 2019-02-11 17:22:58 +0100 |
---|---|---|
committer | Jakub Adam <jakub.adam@collabora.com> | 2019-02-12 10:19:40 +0100 |
commit | c21b2b3121a220b4a4402ab795007674d77dd488 (patch) | |
tree | c0fb86f992f8ed75dbd89e89e4ea746f59356571 | |
parent | 280e36a572c772fd481457f6192ddd399e996961 (diff) | |
download | libnice-c21b2b3121a220b4a4402ab795007674d77dd488.tar.gz |
agent: don't print TURN password unless the logging is verbose
Limits accidental leakage of secret information.
-rw-r--r-- | agent/agent.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |