dect
/
asterisk
Archived
13
0
Fork 0

Loader fixes

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2813 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-04-29 04:13:06 +00:00
parent cb79c58c84
commit 6d4395c005
1 changed files with 3 additions and 3 deletions

View File

@ -280,11 +280,11 @@ int ast_load_resource(char *resource_name)
m->reload = dlsym(m->lib, "reload");
if (m->reload == NULL)
m->reload = dlsym(m->lib, "_reload");
if (m->key && !(key = m->key())) {
if (!m->key || !(key = m->key())) {
ast_log(LOG_WARNING, "Key routine returned NULL in module %s\n", fn);
errors++;
} else
key = NULL;
errors++;
}
if (key && verify_key(key)) {
ast_log(LOG_WARNING, "Unexpected key returned by module %s\n", fn);
errors++;