From d4d5ed39ba155621a2639c2159b741e85569996e Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 16 May 2008 15:49:23 +0000 Subject: [PATCH] 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@8437 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_state_machine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index 7653cf1cfd..3504275abc 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -84,6 +84,8 @@ static void switch_core_standard_on_routing(switch_core_session_t *session) if ((dparg = strchr(dpname, ':'))) { *dparg++ = '\0'; } + } else { + continue; } if (!(dialplan_interface = switch_loadable_module_get_dialplan_interface(dpname))) { continue;