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);
}
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));
}