From: Michael Jerris Date: Thu, 14 Feb 2013 20:03:20 +0000 (-0500) Subject: add a bit more error checking to module loader X-Git-Tag: v1.3.13~50^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d47726659f869c633a719b6646f21384039be9ae;p=thirdparty%2Ffreeswitch.git add a bit more error checking to module loader --- diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index d63ff074f1..02a9e6792b 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -316,6 +316,8 @@ static switch_status_t switch_loadable_module_process(char *key, switch_loadable for (ptr = new_module->module_interface->file_interface; ptr; ptr = ptr->next) { if (!ptr->interface_name) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Failed to load file interface from %s due to no interface name.\n", key); + } else if (!ptr->extens) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Failed to load file interface from %s due to no file extensions.\n", key); } else { int i; for (i = 0; ptr->extens[i]; i++) {