svn commit: r1926955 - /apr/apr-util/branches/1.7.x/ldap/apr_ldap.c
[email protected] Fri, 04 Jul 2025 15:16:30 -0000
Newsgroups
gmane.comp.apache.apr.cvs
Message-ID
<[email protected] >
Author: minfrin
Date: Fri Jul 4 15:16:30 2025
New Revision: 1926955
URL: http://svn.apache.org/viewvc?rev=1926955&view=rev
Log:
Backport r1926954
apr_ldap: Reset apr_ldap_bind_interact_t each time in case the
callback misbehaves.
Modified:
apr/apr-util/branches/1.7.x/ldap/apr_ldap.c
Modified: apr/apr-util/branches/1.7.x/ldap/apr_ldap.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/ldap/apr_ldap.c?rev=1926955&r1=1926954&r2=1926955&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/ldap/apr_ldap.c (original)
+++ apr/apr-util/branches/1.7.x/ldap/apr_ldap.c Fri Jul 4 15:16:30 2025
@@ -2692,10 +2692,12 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_
const char *dn;
struct berval cred;
- apr_ldap_bind_interact_t interaction = { 0 };
+ apr_ldap_bind_interact_t interaction;
memset(err, 0, sizeof(*err));
+ memset(&interaction, 0, sizeof(apr_ldap_bind_interact_t));
+
interaction.id = APR_LDAP_INTERACT_DN;
interaction.prompt = "Distinguished Name";
@@ -2717,6 +2719,8 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_
dn = "";
}
+ memset(&interaction, 0, sizeof(apr_ldap_bind_interact_t));
+
interaction.id = APR_LDAP_INTERACT_PASS;
interaction.prompt = "Password";