Commit c1993458 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

secur32: Validate the context handle in schan_InitializeSecurityContextW().

parent 96185c7e
......@@ -984,7 +984,7 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
SIZE_T record_size = 0;
unsigned char *ptr;
ctx = schan_get_object(phContext->dwLower, SCHAN_HANDLE_CTX);
if (!(ctx = schan_get_object(phContext->dwLower, SCHAN_HANDLE_CTX))) return SEC_E_INVALID_HANDLE;
if (pInput)
{
idx = schan_find_sec_buffer_idx(pInput, 0, SECBUFFER_TOKEN);
......
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