mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 07:57:22 +00:00
kerberos: Fix condition for create_context_handle in kerberos_SpInitLsaModeContext and kerberos_SpAcceptLsaModeContext.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53472
This commit is contained in:
parent
ccc001ee43
commit
0b18d0c825
|
@ -424,9 +424,10 @@ static NTSTATUS NTAPI kerberos_SpInitLsaModeContext( LSA_SEC_HANDLE credential,
|
|||
params.output_token_length = &output->pBuffers[idx].cbBuffer;
|
||||
|
||||
status = KRB5_CALL( initialize_context, ¶ms );
|
||||
if (status == SEC_E_OK || status == SEC_I_CONTINUE_NEEDED)
|
||||
*new_context = create_context_handle( context_handle, new_context_handle );
|
||||
if (!status)
|
||||
{
|
||||
*new_context = create_context_handle( context_handle, new_context_handle );
|
||||
*mapped_context = TRUE;
|
||||
expiry_to_timestamp( exptime, expiry );
|
||||
}
|
||||
|
@ -473,9 +474,10 @@ static NTSTATUS NTAPI kerberos_SpAcceptLsaModeContext( LSA_SEC_HANDLE credential
|
|||
|
||||
/* FIXME: check if larger output buffer exists */
|
||||
status = KRB5_CALL( accept_context, ¶ms );
|
||||
if (status == SEC_E_OK || status == SEC_I_CONTINUE_NEEDED)
|
||||
*new_context = create_context_handle( context_handle, new_context_handle );
|
||||
if (!status)
|
||||
{
|
||||
*new_context = create_context_handle( context_handle, new_context_handle );
|
||||
*mapped_context = TRUE;
|
||||
expiry_to_timestamp( exptime, expiry );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue