]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
gcc warns about stupid things but lets you get away with murder elsewhere....
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 23 May 2008 18:18:45 +0000 (18:18 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 23 May 2008 18:18:45 +0000 (18:18 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8541 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 08b85d77386d7a5e199d521b433256f5cf2ea713..43f1a2840d9944f98011b4e7ee0d4646ceeea04f 100644 (file)
@@ -544,7 +544,7 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han
                        
                        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);
                                }