From b186944049ed66a7cc3cbb1b76f56a75d8fa133f Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Wed, 14 Mar 2012 20:31:34 +0000 Subject: [PATCH] FS-4004 --resolve Thanks to Kyle A. King for pointing this out and to William King for collaboration. --- src/switch_loadable_module.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index 36cc24b282..9474fee9b0 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -1270,6 +1270,11 @@ static switch_status_t switch_loadable_module_load_file(char *path, char *filena break; } + if (!module_interface) { + err = "Module failed to initialize its module_interface. Is this a valid module?"; + break; + } + if ((module = switch_core_alloc(pool, sizeof(switch_loadable_module_t))) == 0) { err = "Could not allocate memory\n"; abort();