From: Michael Jerris Date: Fri, 16 May 2008 14:59:28 +0000 (+0000) Subject: don't pass null to switch_loadable_module_get_dialplan_interface. Found by Klockwork... X-Git-Tag: v1.0-rc6~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b879941dab648b5f8d16367283c60f4519445109;p=thirdparty%2Ffreeswitch.git don't pass null to switch_loadable_module_get_dialplan_interface. Found by Klockwork (www.klocwork.com) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8433 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_session.c b/src/switch_core_session.c index 1200d635c0..2b712a54ab 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -1098,7 +1098,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se if ((dparg = strchr(dpname, ':'))) { *dparg++ = '\0'; } + } else { + continue; } + if (!(dialplan_interface = switch_loadable_module_get_dialplan_interface(dpname))) { continue; }