Commit bb42398d authored by Jakub Adam's avatar Jakub Adam

Fix username validation in OC2007 mode

Wrong 'inbound' argument was passed into priv_validate_username()
parent 292fa85d
...@@ -2834,8 +2834,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream, ...@@ -2834,8 +2834,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
NiceCandidate *lcand = j->data; NiceCandidate *lcand = j->data;
/* If we receive a response, then the username is local:remote */ /* If we receive a response, then the username is local:remote */
if (agent->compatibility != NICE_COMPATIBILITY_MSN && if (agent->compatibility != NICE_COMPATIBILITY_MSN) {
agent->compatibility != NICE_COMPATIBILITY_OC2007) {
if (stun_message_get_class (&req) == STUN_REQUEST || if (stun_message_get_class (&req) == STUN_REQUEST ||
stun_message_get_class (&req) == STUN_INDICATION) { stun_message_get_class (&req) == STUN_INDICATION) {
inbound = TRUE; inbound = TRUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment