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:
parent
a9ecd6a6cc
commit
fe37fede50
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user