[Freeswitch-svn] [commit] r8541 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Fri May 23 14:18:45 EDT 2008


Author: anthm
Date: Fri May 23 14:18:45 2008
New Revision: 8541

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c

Log:
gcc warns about stupid things but lets you get away with murder elsewhere....

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	Fri May 23 14:18:45 2008
@@ -544,7 +544,7 @@
 			
 			if ((v_contact_str = switch_event_get_header(*v_event, "sip-force-contact"))) {
 
-				if (switch_strlen_zero(received_data) && (profile->pflags & PFLAG_RECIEVED_IN_NAT_REG_CONTACT)) {
+				if (*received_data && (profile->pflags & PFLAG_RECIEVED_IN_NAT_REG_CONTACT)) {
 					switch_snprintf(received_data, sizeof(received_data), ";received=\"%s:%d\"", network_ip, network_port);
 				}
 



More information about the Freeswitch-svn mailing list