summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/gnupg/distinfo3
-rw-r--r--security/gnupg/patches/patch-af22
2 files changed, 24 insertions, 1 deletions
diff --git a/security/gnupg/distinfo b/security/gnupg/distinfo
index 21f3c99d9dd..b9acca5a474 100644
--- a/security/gnupg/distinfo
+++ b/security/gnupg/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2002/08/25 21:50:37 jlam Exp $
+$NetBSD: distinfo,v 1.11 2002/09/30 22:41:30 chris Exp $
SHA1 (gnupg-1.0.7.tar.gz) = 46da038c60143fa49abae2fae6fcbd0f58f7a46e
Size (gnupg-1.0.7.tar.gz) = 2399025 bytes
@@ -9,3 +9,4 @@ SHA1 (patch-ab) = ce3b5ff0331e51ca6cd11b969e8df3719ca5d547
SHA1 (patch-ac) = 9e3d0c6a7b828e52f5a773591f87e4a9072ad698
SHA1 (patch-ad) = 55ca924c9aefe9eeca44b301ac523e7ebb2514e9
SHA1 (patch-ae) = ff58490a6505e333f776efa7cafaa269c4833597
+SHA1 (patch-af) = 804f28db69c9d0aa7c1cfd3237b9a5adb1e95ad9
diff --git a/security/gnupg/patches/patch-af b/security/gnupg/patches/patch-af
new file mode 100644
index 00000000000..c3653f509fa
--- /dev/null
+++ b/security/gnupg/patches/patch-af
@@ -0,0 +1,22 @@
+$NetBSD: patch-af,v 1.1 2002/09/30 22:41:31 chris Exp $
+
+--- cipher/dynload.c.orig Mon Sep 30 23:34:34 2002
++++ cipher/dynload.c Mon Sep 30 23:35:18 2002
+@@ -287,7 +287,7 @@
+ goto failure;
+ }
+ name = (char**)dlsym(el->handle, SYMBOL_VERSION);
+- if( (err=dlerror()) ) {
++ if( (name == NULL) && (err=dlerror()) ) {
+ log_error("%s: not a gnupg extension: %s\n", el->name, err );
+ goto failure;
+ }
+@@ -332,7 +332,7 @@
+
+ #ifdef HAVE_DL_DLOPEN
+ sym = dlsym(el->handle, SYMBOL_ENUM);
+- if( (err=dlerror()) ) {
++ if( (sym == NULL) && (err=dlerror()) ) {
+ log_error("%s: invalid gnupg extension: %s\n", el->name, err );
+ goto failure;
+ }