Fix variable passsed to HashCallback with MIC.

The value in the context is not set yet and we need one from
authentication message.
This commit is contained in:
Mariusz Zaborski 2018-04-06 21:15:15 +02:00
parent a9ecd6a6cc
commit fe37fede50

View File

@ -346,8 +346,9 @@ int ntlm_compute_ntlm_v2_hash(NTLM_CONTEXT* context, BYTE* hash)
}
ret = context->HashCallback(context->HashCallbackArg, &credentials->identity, &proofValue,
context->EncryptedRandomSessionKey, context->MessageIntegrityCheck, &micValue,
hash);
context->EncryptedRandomSessionKey,
(&context->AUTHENTICATE_MESSAGE)->MessageIntegrityCheck,
&micValue, hash);
sspi_SecBufferFree(&proofValue);
sspi_SecBufferFree(&micValue);
return ret ? 1 : -1;