Skip to content

Commit 1d915b7

Browse files
Merge pull request paullouisageneau#289 from paullouisageneau/better-warnings-for-invalid-turn-credentials
Better warnings for invalid TURN credentials
2 parents ac7d252 + cbdab33 commit 1d915b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/agent.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1299,21 +1299,21 @@ int agent_dispatch_stun(juice_agent_t *agent, void *buf, size_t size, stun_messa
12991299
case STUN_METHOD_ALLOCATE:
13001300
case STUN_METHOD_REFRESH:
13011301
if (agent_verify_credentials(agent, entry, buf, size, msg)) {
1302-
JLOG_WARN("Ignoring invalid TURN Allocate message");
1302+
JLOG_WARN("Ignoring TURN Allocate message with invalid credentials (Is server authentication disabled?)");
13031303
return -1;
13041304
}
13051305
return agent_process_turn_allocate(agent, msg, entry);
13061306

13071307
case STUN_METHOD_CREATE_PERMISSION:
13081308
if (agent_verify_credentials(agent, entry, buf, size, msg)) {
1309-
JLOG_WARN("Ignoring invalid TURN CreatePermission message");
1309+
JLOG_WARN("Ignoring TURN CreatePermission message with invalid credentials");
13101310
return -1;
13111311
}
13121312
return agent_process_turn_create_permission(agent, msg, entry);
13131313

13141314
case STUN_METHOD_CHANNEL_BIND:
13151315
if (agent_verify_credentials(agent, entry, buf, size, msg)) {
1316-
JLOG_WARN("Ignoring invalid TURN ChannelBind message");
1316+
JLOG_WARN("Ignoring TURN ChannelBind message with invalid credentials");
13171317
return -1;
13181318
}
13191319
return agent_process_turn_channel_bind(agent, msg, entry);

0 commit comments

Comments
 (0)