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;
participants (1)
-
Freeswitch SVN