summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/instance.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/instance.c b/src/instance.c
index 4cb835d..46d390a 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -94,8 +94,15 @@ get_wrap_module(const char* host_type_uri,
module->init = (SuilWrapInitFunc)suil_dlfunc(lib, "suil_wrap_init");
module->wrap = (SuilWrapFunc)suil_dlfunc(lib, "suil_wrap");
+ if (!module->init || !module->wrap) {
+ SUIL_ERRORF("Corrupt module %s\n", path);
+ free(path);
+ free(module);
+ return NULL;
+ }
+
free(path);
-
+
return module;
}