mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Merge "loader.c: Fix possible SEGV when a module fails to register"
This commit is contained in:
@@ -1087,7 +1087,7 @@ static struct ast_module *load_dlopen(const char *resource_in, const char *so_ex
|
|||||||
if (resource_being_loaded) {
|
if (resource_being_loaded) {
|
||||||
struct ast_str *list;
|
struct ast_str *list;
|
||||||
int c = 0;
|
int c = 0;
|
||||||
const char *dlerror_msg = ast_strdupa(dlerror());
|
const char *dlerror_msg = ast_strdupa(S_OR(dlerror(), ""));
|
||||||
|
|
||||||
resource_being_loaded = NULL;
|
resource_being_loaded = NULL;
|
||||||
if (mod->lib) {
|
if (mod->lib) {
|
||||||
|
|||||||
Reference in New Issue
Block a user