fix compiler warn

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9097 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-07-18 20:45:07 +00:00
parent 8639738e4b
commit c9fe28877e
1 changed files with 2 additions and 2 deletions

View File

@ -448,8 +448,8 @@ switch_status_t sofia_glue_ext_address_lookup(sofia_profile_t *profile, private_
int iport;
*p++ = '\0';
iport = atoi(p);
if (iport > 0) {
stun_port = iport;
if (iport > 0 && iport < 0xFFFF) {
stun_port = (switch_port_t) iport;
}
}