From 4d275bcf10e06facfe2e76089cac9947edc4a711 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 24 May 2007 20:04:10 +0100 Subject: [PATCH] secur32: Don't set the output buffer type in NTLM's IntializeSecurityContextA/W. --- dlls/secur32/ntlm.c | 1 - dlls/secur32/tests/ntlm.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c index 5da4488caa9..9a1fa3b9067 100644 --- a/dlls/secur32/ntlm.c +++ b/dlls/secur32/ntlm.c @@ -657,7 +657,6 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW( } pOutput->pBuffers[0].cbBuffer = bin_len; - pOutput->pBuffers[0].BufferType = SECBUFFER_DATA; memcpy(pOutput->pBuffers[0].pvBuffer, bin, bin_len); if(ret == SEC_E_OK) diff --git a/dlls/secur32/tests/ntlm.c b/dlls/secur32/tests/ntlm.c index 6b8f5a8b550..e25749fd8b6 100644 --- a/dlls/secur32/tests/ntlm.c +++ b/dlls/secur32/tests/ntlm.c @@ -465,6 +465,8 @@ static SECURITY_STATUS runClient(SspiData *sspi_data, BOOL first, ULONG data_rep ret = SEC_E_OK; } + ok(out_buf->pBuffers[0].BufferType == SECBUFFER_TOKEN, + "buffer type was changed from SECBUFFER_TOKEN to %ld\n", out_buf->pBuffers[0].BufferType); ok(out_buf->pBuffers[0].cbBuffer < sspi_data->max_token, "InitializeSecurityContext set buffer size to %lu\n", out_buf->pBuffers[0].cbBuffer);