aports/main/openldap/0001-Fix-build-issue-in-clients-tools-common.c.patch
Lars Kellogg-Stedman 29a30af74f main/openldap: Regenerate patches against openldap 2.6.3
The existing patches were requiring an increasing amount of fuzz in order
to apply against recent versions of openldap.

With this commit I have applied the patches on top of the
OPENLDAP_REL_ENG_2_6_3 tag from the openldap upstream repository, and then
re-generated the patch files with `git format-patch`.
2022-09-02 01:59:20 +00:00

26 lines
736 B
Diff

From 1dcef12a5d3ffd679b2ea5b6ecb30a5dee6dd68e Mon Sep 17 00:00:00 2001
From: Lars Kellogg-Stedman <lars@oddbit.com>
Date: Fri, 19 Aug 2022 22:49:57 -0400
Subject: [PATCH 1/8] Fix build issue in clients/tools/common.c
---
clients/tools/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clients/tools/common.c b/clients/tools/common.c
index b88f219..681249a 100644
--- a/clients/tools/common.c
+++ b/clients/tools/common.c
@@ -1414,8 +1414,8 @@ tool_bind( LDAP *ld )
msgbuf[0] = 0;
#ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST
+ LDAPControl c;
if ( ppolicy ) {
- LDAPControl c;
c.ldctl_oid = LDAP_CONTROL_PASSWORDPOLICYREQUEST;
c.ldctl_value.bv_val = NULL;
c.ldctl_value.bv_len = 0;
--
2.37.1