]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 27 Apr 2006 21:25:47 +0000 (21:25 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 27 Apr 2006 21:25:47 +0000 (21:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1282 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 56d329e3b45f2797485a5bfbe2654b3efd931b0e..346dcd6cdd1a6cf9f2b67c0432c425b78e98c05b 100644 (file)
@@ -1445,7 +1445,12 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi
 
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%u candidates\n", len);
                                for(x = 0; x < len; x++) {
-                                       uint8_t lanaddr = strncasecmp(candidates[x].address, profile->lanaddr, strlen(profile->lanaddr)) ? 0 : 1;
+                                       uint8_t lanaddr = 0;
+
+                                       if (profile->lanaddr) {
+                                               lanaddr = strncasecmp(candidates[x].address, profile->lanaddr, strlen(profile->lanaddr)) ? 0 : 1;
+                                       } 
+
                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "candidates %s:%d\n", candidates[x].address, candidates[x].port);
                                        
                                        if (!strcasecmp(candidates[x].protocol, "udp") && (!strcasecmp(candidates[x].type, "local") || !strcasecmp(candidates[x].type, "stun")) &&