[coverity] 1543271 Explicit null dereferenced

This commit is contained in:
akallabeth 2024-04-11 14:50:50 +02:00 committed by Martin Fleisz
parent 793145b8c5
commit 0a34b1e95d

View File

@ -675,6 +675,9 @@ static SECURITY_STATUS SEC_ENTRY negotiate_InitializeSecurityContextW(
if (!init_context.mech)
{
/* Use the output buffer to store the optimistic token */
if (!output_buffer)
goto cleanup;
CopyMemory(&output_token.mechToken, output_buffer, sizeof(SecBuffer));
if (bindings_buffer)