[Freeswitch-svn] [commit] r8437 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Fri May 16 11:49:23 EDT 2008


Author: mikej
Date: Fri May 16 11:49:23 2008
New Revision: 8437

Modified:
   freeswitch/trunk/src/switch_core_state_machine.c

Log:
don't pass null to switch_loadable_module_get_dialplan_interface. Found by Klockwork (www.klocwork.com)

Modified: freeswitch/trunk/src/switch_core_state_machine.c
==============================================================================
--- freeswitch/trunk/src/switch_core_state_machine.c	(original)
+++ freeswitch/trunk/src/switch_core_state_machine.c	Fri May 16 11:49:23 2008
@@ -84,6 +84,8 @@
 						if ((dparg = strchr(dpname, ':'))) {
 							*dparg++ = '\0';
 						}
+					} else {
+						continue;
 					}
 					if (!(dialplan_interface = switch_loadable_module_get_dialplan_interface(dpname))) {
 						continue;



More information about the Freeswitch-svn mailing list