[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_sasl_interactive_bind_s leaks? (ITS#2423)
Full_Name: Igor Brezac
Version: 2.1.16
OS: Solaris 9
URL: ftp://ftp.openldap.org/incoming/ldap_sasl_interactive_bind_s.leak.c
Submission from: (NULL) (209.170.129.80)
My testing shows a leak in ldap_sasl_interactive_bind_s(). I tried to chase the
leak with fnccheck, but after compiling both openldap and my testing program for
profiling, fncdump dumps itself. Anyway, ldap_sasl_interactive_bind_s() frees
SASL_INTERACT prompt result, but I do not think it frees other prompt buffers.
I looked throught sources for ldapsearch and slurpd, but I did not find ways to
free the buffers allocated in _ldap_interact.
Somewhat related issue I have is that the following pseudo code does not work.
The ldap connection needs to be reset after each ldap_sasl_interactive_bind_s.
I am not sure if this behaviour is by design, but I was hoping that it'll work
just like it does with simple bind.
ldap_initialize
while
get auth input
ldap_sasl_interactive_bind_s(authcid,authzid,mech,pass...)
endwhile
Thanks