]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5546 --resolve oddly that is the thing I was trying to fix in the first place
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 26 Jun 2013 14:17:15 +0000 (09:17 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 26 Jun 2013 14:17:15 +0000 (09:17 -0500)
src/switch_rtp.c

index 9a02479e3522832186c70ea231a4486ce4b499fa..cc735639680e63ffd1414ab634c8c3dd01d0e351 100644 (file)
@@ -840,7 +840,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
                xlen += 4 + switch_stun_attribute_padded_length(attr);
        } while (xlen <= packet->header.length);
 
-       if ((ice->type && ICE_GOOGLE_JINGLE) && ok) {
+       if ((ice->type & ICE_GOOGLE_JINGLE) && ok) {
                ok = !strcmp(ice->user_ice, username);
        }
        
@@ -997,7 +997,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
                        memset(stunbuf, 0, sizeof(stunbuf));
                        rpacket = switch_stun_packet_build_header(SWITCH_STUN_BINDING_RESPONSE, packet->header.id, stunbuf);
 
-                       if ((ice->type && ICE_GOOGLE_JINGLE)) {
+                       if ((ice->type & ICE_GOOGLE_JINGLE)) {
                                switch_stun_packet_attribute_add_username(rpacket, username, (uint16_t)strlen(username));
                        }