build: fix gcc-4.4.0 build failures (FSCORE-355)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13395 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2009-05-19 20:25:59 +00:00
parent 1287948750
commit 85317633dc
4 changed files with 16 additions and 12 deletions

View File

@@ -549,7 +549,8 @@ SWITCH_DECLARE(switch_status_t) switch_stun_lookup(char **ip,
case SWITCH_STUN_ATTR_MAPPED_ADDRESS:
if (attr->type) {
if (funny) {
((switch_stun_ip_t *) attr->value)->address ^= ntohl(0xabcdabcd);
switch_stun_ip_t *tmp = (switch_stun_ip_t *)attr->value;
tmp->address ^= ntohl(0xabcdabcd);
}
switch_stun_packet_attribute_get_mapped_address(attr, rip, &rport);
}