[Freeswitch-trunk] [commit] r13935 - freeswitch/trunk/src/mod/xml_int/mod_xml_rpc

FreeSWITCH SVN brian at freeswitch.org
Wed Jun 24 08:52:03 PDT 2009


Author: brian
Date: Wed Jun 24 10:52:03 2009
New Revision: 13935

Log:
 can't change behavior global user and pass alone MUST work as it did before 

Modified:
   freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c	(original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c	Wed Jun 24 10:52:03 2009
@@ -256,7 +256,7 @@
 		return FALSE;
 	}
 
-	if (!switch_strlen_zero(globals.realm) && !strcasecmp(domain_name, globals.realm) && !switch_strlen_zero(globals.user) && !strcmp(user, globals.user)) {
+	if (!switch_strlen_zero(globals.realm) && !switch_strlen_zero(globals.user) && !strcmp(user, globals.user)) {
 		switch_safe_free(user);
 		return TRUE;
 	}
@@ -328,7 +328,7 @@
 					goto fail;
 				}
 
-				if (!switch_strlen_zero(globals.realm) && !strcasecmp(domain_name, globals.realm) && !switch_strlen_zero(globals.user) && !switch_strlen_zero(globals.pass)) {
+				if (!switch_strlen_zero(globals.realm) && !switch_strlen_zero(globals.user) && !switch_strlen_zero(globals.pass)) {
 					if (at) {
 						switch_snprintf(z, sizeof(z), "%s@%s:%s", globals.user, globals.realm, globals.pass);
 					} else {



More information about the Freeswitch-trunk mailing list