aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/idea-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/idea-stub.c')
-rw-r--r--cipher/idea-stub.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/cipher/idea-stub.c b/cipher/idea-stub.c
index 9dd0ced30..1f40b18d7 100644
--- a/cipher/idea-stub.c
+++ b/cipher/idea-stub.c
@@ -124,9 +124,9 @@ load_module (const char *name)
#endif
handle = dlopen (name, RTLD_NOW);
- if (!name)
+ if (!handle)
{
- /*log_error ("error loading module `%s': %s\n", name, dlerror());*/
+ err=dlerror();
goto failure;
}
@@ -134,14 +134,12 @@ load_module (const char *name)
if (dlerror ())
sym = dlsym (handle, "_idea_get_info");
if ((err=dlerror()))
- {
- log_info ("invalid module `%s': %s\n", name, err);
- goto failure;
- }
+ goto failure;
return sym;
failure:
+ log_info ("invalid module `%s': %s\n", name?name:"???", err?err:"???");
if (handle)
dlclose (handle);
#endif /*USE_DYNAMIC_LINKING*/