[Freeswitch-svn] [commit] r9097 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Fri Jul 18 16:45:07 EDT 2008


Author: anthm
Date: Fri Jul 18 16:45:07 2008
New Revision: 9097

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c

Log:
fix compiler warn

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	Fri Jul 18 16:45:07 2008
@@ -448,8 +448,8 @@
 			int iport;
 			*p++ = '\0';
 			iport = atoi(p);
-			if (iport > 0) {
-				stun_port = iport;
+			if (iport > 0 && iport < 0xFFFF) {
+				stun_port = (switch_port_t) iport;
 			}
 		}
 



More information about the Freeswitch-svn mailing list