1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-24 20:41:03 +02:00

Merge pull request #767 from ggalperi/patch-1

Fix server->log_binding usage
This commit is contained in:
Mészáros Mihály 2021-06-17 12:57:45 +02:00 committed by GitHub
commit 6492f51a63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3839,13 +3839,13 @@ static int handle_turn_command(turn_turnserver *server, ts_ur_super_session *ss,
&dest_changed, &response_destination,
0, 0);
if(server->verbose && server->log_binding) {
if(server->verbose && *(server->log_binding)) {
log_method(ss, "BINDING", err_code, reason);
}
if(*resp_constructed && !err_code && (origin_changed || dest_changed)) {
if (server->verbose && server->log_binding) {
if (server->verbose && *(server->log_binding)) {
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "RFC 5780 request successfully processed\n");
}