const char *sym;
void *dlh;
- dlh = dlopen(name, RTLD_LAZY | RTLD_LOCAL);
+ dlh = dlopen(name, RTLD_LAZY | RTLD_GLOBAL);
if (!dlh) {
fprintf(stderr, "Could not open plugin %s: %s\n", name, dlerror());
return -ENOENT;
struct uhttpd_plugin *p;
list_for_each_entry(p, &plugins, list)
- p->post_init();
+ if (p->post_init)
+ p->post_init();
}