Sven Baars : ldap: Free the output buffer after every InitializeSecurityContextA() call (Valgrind).
Module: wine Branch: master Commit: 4fd56146a8e4d2387ff04cd15b96c542d06a10dc URL: https://gitlab.winehq.org/wine/wine/-/commit/4fd56146a8e4d2387ff04cd15b96c54... Author: Sven Baars <sbaars(a)codeweavers.com> Date: Sun Jul 30 20:34:49 2023 +0200 ldap: Free the output buffer after every InitializeSecurityContextA() call (Valgrind). --- libs/ldap/libldap/tls_w.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ldap/libldap/tls_w.c b/libs/ldap/libldap/tls_w.c index c798d4249c0..39cb5436053 100644 --- a/libs/ldap/libldap/tls_w.c +++ b/libs/ldap/libldap/tls_w.c @@ -228,7 +228,9 @@ tlsw_session_connect( LDAP *ld, tls_session *session, const char *name_in ) expected -= size; } - out_bufs[0].cbBuffer = max_token; + FreeContextBuffer( out_bufs[0].pvBuffer ); + out_bufs[0].pvBuffer = NULL; + status = InitializeSecurityContextA( &s->cred_handle, &s->ctxt_handle, (SEC_CHAR *)name_in, flags, 0, 0, &in_buf_desc, 0, NULL, &out_buf_desc, &attrs, NULL ); if ( status == SEC_E_INCOMPLETE_MESSAGE ) {
participants (1)
-
Alexandre Julliard