diff options
Diffstat (limited to 'security/courier-authlib/patches/patch-ad')
-rw-r--r-- | security/courier-authlib/patches/patch-ad | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/security/courier-authlib/patches/patch-ad b/security/courier-authlib/patches/patch-ad new file mode 100644 index 00000000000..ba71d4e4b58 --- /dev/null +++ b/security/courier-authlib/patches/patch-ad @@ -0,0 +1,22 @@ +$NetBSD: patch-ad,v 1.1 2007/09/05 17:06:55 jlam Exp $ + +--- authldaplib.c.orig 2007-01-20 12:03:22.000000000 -0500 ++++ authldaplib.c +@@ -126,7 +126,7 @@ authldap_free_config removed - no longer + static char **l_get_values(LDAP *ld, LDAPMessage *entry, const char *attribut) + { + struct berval **p=ldap_get_values_len(ld, entry, attribut); +- int n; ++ int i, n; + char **a; + + if (!p) +@@ -144,8 +144,6 @@ static char **l_get_values(LDAP *ld, LDA + return NULL; + } + +- int i; +- + for (i=0; i<n; i++) + { + if ((a[i]=malloc(p[i]->bv_len+1)) == NULL) |