secur32: Don't set the output buffer type in NTLM's IntializeSecurityContextA/W.
This commit is contained in:
parent
661b49785e
commit
4d275bcf10
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue