blob: eb3e24f8528c88773dcf8666030446a3ba345715 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-aa,v 1.11 2006/04/04 21:16:37 wiz Exp $
--- 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;
|