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

Freeswitch SVN mikej at freeswitch.org
Fri May 16 12:15:38 EDT 2008


Author: mikej
Date: Fri May 16 12:15:37 2008
New Revision: 8439

Modified:
   freeswitch/trunk/src/switch_loadable_module.c

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

Modified: freeswitch/trunk/src/switch_loadable_module.c
==============================================================================
--- freeswitch/trunk/src/switch_loadable_module.c	(original)
+++ freeswitch/trunk/src/switch_loadable_module.c	Fri May 16 12:15:37 2008
@@ -1349,7 +1349,7 @@
 		}
 	}
 
-	if ((api = switch_loadable_module_get_api_interface(cmd)) != 0) {
+	if (cmd && (api = switch_loadable_module_get_api_interface(cmd)) != 0) {
 		status = api->function(arg, session, stream);
 	} else {
 		status = SWITCH_STATUS_FALSE;



More information about the Freeswitch-svn mailing list