[coverity] 1543134 Explicit null dereferenced

This commit is contained in:
akallabeth 2024-04-12 10:48:16 +02:00 committed by akallabeth
parent f264cc729c
commit c9850bb299

View File

@ -1135,7 +1135,8 @@ static SECURITY_STATUS SEC_ENTRY negotiate_AcceptSecurityContext(
return SEC_E_INVALID_TOKEN;
/* Use the output buffer to store the optimistic token */
CopyMemory(&output_token.mechToken, output_buffer, sizeof(SecBuffer));
if (output_buffer)
CopyMemory(&output_token.mechToken, output_buffer, sizeof(SecBuffer));
status = context->mech->pkg->table->AcceptSecurityContext(
sub_cred, &context->sub_context, &mech_input, fContextReq | context->mech->flags,