|
@@ -630,11 +630,14 @@ reload:
|
|
|
if(expref.len>3 && strcmp(expref.s+expref.len-3, ".so")==0)
|
|
|
expref.len -= 3;
|
|
|
snprintf(exbuf, 62, "_%.*s_exports", expref.len, expref.s);
|
|
|
- exp = (union module_exports_u*)dlsym(handle, exbuf);
|
|
|
LM_DBG("looking up exports with name: %s\n", exbuf);
|
|
|
- if ( (error =(char*)dlerror())!=0 ){
|
|
|
- LM_ERR("%s\n", error);
|
|
|
- goto error1;
|
|
|
+ exp = (union module_exports_u*)dlsym(handle, exbuf);
|
|
|
+ if(exp==NULL) {
|
|
|
+ if ( (error =(char*)dlerror())!=0 ){
|
|
|
+ LM_ERR("failure for exports symbol: %s - dlerror: %s\n",
|
|
|
+ exbuf, error);
|
|
|
+ goto error1;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
/* hack to allow for kamailio style dlflags inside exports */
|