diff options
author | David Shaw <[email protected]> | 2003-05-14 02:48:39 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-05-14 02:48:39 +0000 |
commit | 7df1d684d980d769cb5b3d24e4dc9c5c345c38b7 (patch) | |
tree | 6f8b7545dae128b18c5e430b2e0b1106a7133451 /cipher/idea-stub.c | |
parent | * parse-packet.c (parse_key): Clear disabled flag when parsing a new key. (diff) | |
download | gnupg-7df1d684d980d769cb5b3d24e4dc9c5c345c38b7.tar.gz gnupg-7df1d684d980d769cb5b3d24e4dc9c5c345c38b7.zip |
* tiger.c: Use the U64_C macro instead of LL.
* md.c (string_to_digest_algo): Give a warning about TIGER192 not being
part of OpenPGP.
* idea-stub.c (load_module): Catch an error if the idea module file is
unloadable for some reason (unreadable, bad permissions, etc.)
Diffstat (limited to 'cipher/idea-stub.c')
-rw-r--r-- | cipher/idea-stub.c | 10 |
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*/ |