fix compiler warn
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9097 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8639738e4b
commit
c9fe28877e
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue