Commit 4d275bcf authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

secur32: Don't set the output buffer type in NTLM's IntializeSecurityContextA/W.

parent 661b4978
......@@ -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)
......
......@@ -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);
......
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