[Freeswitch-branches] [commit] r13569 - freeswitch/branches/brian/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN brian at freeswitch.org
Wed Jun 3 07:36:39 PDT 2009


Author: brian
Date: Wed Jun  3 09:36:38 2009
New Revision: 13569

Log:
 adding addition sanity check 

Modified:
   freeswitch/branches/brian/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c

Modified: freeswitch/branches/brian/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
==============================================================================
--- freeswitch/branches/brian/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	(original)
+++ freeswitch/branches/brian/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	Wed Jun  3 09:36:38 2009
@@ -1422,7 +1422,8 @@
 
 	contact = sofia_glue_get_url_from_contact(o_contact, 1);
 
-	if (sofia_test_pflag(profile, PFLAG_AUTO_NAT) && !switch_check_network_list_ip(network_ip, profile->local_network)) {
+	if (sofia_test_pflag(profile, PFLAG_AUTO_NAT) && profile->local_network &&
+		!switch_check_network_list_ip(network_ip, profile->local_network)) {
 		char *ptr = NULL;
 		const char *transport_str = NULL;
 



More information about the Freeswitch-branches mailing list