$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;