mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
Fix usage of dlerror to conform to POSIX.
* cipher/idea-stub.c: Clear last error before dlsym. -- This is required for NetBSD. Reported-by: Thomas Klausner
This commit is contained in:
parent
b1abc01d4a
commit
c3a5448379
@ -130,6 +130,8 @@ load_module (const char *name)
|
|||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dlerror (); /* Clear old errors or initialize dlerror. */
|
||||||
|
|
||||||
sym = dlsym (handle, "idea_get_info");
|
sym = dlsym (handle, "idea_get_info");
|
||||||
if (dlerror ())
|
if (dlerror ())
|
||||||
sym = dlsym (handle, "_idea_get_info");
|
sym = dlsym (handle, "_idea_get_info");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user