From: Travis Cross Date: Wed, 14 Mar 2012 20:31:34 +0000 (+0000) Subject: FS-4004 --resolve X-Git-Tag: v1.2-rc1~19^2^2~68^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b186944049ed66a7cc3cbb1b76f56a75d8fa133f;p=thirdparty%2Ffreeswitch.git FS-4004 --resolve Thanks to Kyle A. King for pointing this out and to William King for collaboration. --- 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();