From bb42398d48f69221984effe1689150b5b0ea9f51 Mon Sep 17 00:00:00 2001 From: Jakub Adam Date: Thu, 6 Dec 2012 22:03:08 +0100 Subject: [PATCH] Fix username validation in OC2007 mode Wrong 'inbound' argument was passed into priv_validate_username() --- agent/conncheck.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/agent/conncheck.c b/agent/conncheck.c index 019b580..a862a1e 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -2834,8 +2834,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream, NiceCandidate *lcand = j->data; /* If we receive a response, then the username is local:remote */ - if (agent->compatibility != NICE_COMPATIBILITY_MSN && - agent->compatibility != NICE_COMPATIBILITY_OC2007) { + if (agent->compatibility != NICE_COMPATIBILITY_MSN) { if (stun_message_get_class (&req) == STUN_REQUEST || stun_message_get_class (&req) == STUN_INDICATION) { inbound = TRUE; -- 2.7.4