d039bae6b8
Noteworthy changes in version 1.4.11 (2010-10-18) ------------------------------------------------- * Bug fixes and portability changes. * Minor changes for better interoperability with GnuPG-2.
18 lines
497 B
Text
18 lines
497 B
Text
$NetBSD: patch-aa,v 1.12 2010/10/21 21:48:12 wiz Exp $
|
|
|
|
Only check dlerror() if dlsym failed.
|
|
|
|
--- cipher/idea-stub.c.orig 2005-12-08 06:58:36.000000000 +0000
|
|
+++ cipher/idea-stub.c
|
|
@@ -133,9 +133,9 @@ load_module (const char *name)
|
|
}
|
|
|
|
sym = dlsym (handle, "idea_get_info");
|
|
- if (dlerror ())
|
|
+ if ((sym == NULL) && dlerror ())
|
|
sym = dlsym (handle, "_idea_get_info");
|
|
- if ((err=dlerror()))
|
|
+ if ((sym == NULL) && (err=dlerror()))
|
|
goto failure;
|
|
|
|
return (INFO_FNC)sym;
|