Commit 4fd56146 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

ldap: Free the output buffer after every InitializeSecurityContextA() call (Valgrind).

parent 2d17c0ff
...@@ -228,7 +228,9 @@ tlsw_session_connect( LDAP *ld, tls_session *session, const char *name_in ) ...@@ -228,7 +228,9 @@ tlsw_session_connect( LDAP *ld, tls_session *session, const char *name_in )
expected -= size; 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, 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 ); flags, 0, 0, &in_buf_desc, 0, NULL, &out_buf_desc, &attrs, NULL );
if ( status == SEC_E_INCOMPLETE_MESSAGE ) { if ( status == SEC_E_INCOMPLETE_MESSAGE ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment