svn commit: r1926954 - /apr/apr/trunk/ldap/apr_ldap.c

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <[email protected]>
Author: minfrin
Date: Fri Jul  4 15:15:46 2025
New Revision: 1926954

URL: http://svn.apache.org/viewvc?rev=1926954&view=rev
Log:
apr_ldap: Reset apr_ldap_bind_interact_t each time in case the
callback misbehaves.

Modified:
    apr/apr/trunk/ldap/apr_ldap.c

Modified: apr/apr/trunk/ldap/apr_ldap.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/ldap/apr_ldap.c?rev=1926954&r1=1926953&r2=1926954&view=diff
==============================================================================
--- apr/apr/trunk/ldap/apr_ldap.c (original)
+++ apr/apr/trunk/ldap/apr_ldap.c Fri Jul  4 15:15:46 2025
@@ -2712,10 +2712,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";
 
@@ -2737,6 +2739,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";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.