Commit ea96a9c8 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard
Browse files

kerberos: Avoid a crash on NULL expiry parameter.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52353

Signed-off-by: Hans Leidekker's avatarHans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 695c3205
......@@ -87,6 +87,7 @@ static void expiry_to_timestamp( ULONG expiry, TimeStamp *timestamp )
{
LARGE_INTEGER time;
if (!timestamp) return;
NtQuerySystemTime( &time );
RtlSystemTimeToLocalTime( &time, &time );
time.QuadPart += expiry * (ULONGLONG)10000000;
......
......@@ -418,7 +418,6 @@ static void test_SspiPrepareForCredWrite(void)
static void test_kerberos(void)
{
SecPkgInfoA *info;
TimeStamp ttl;
CredHandle cred;
SECURITY_STATUS status;
......@@ -460,7 +459,7 @@ static void test_kerberos(void)
FreeContextBuffer( info );
status = AcquireCredentialsHandleA( NULL, provider, SECPKG_CRED_OUTBOUND, NULL,
NULL, NULL, NULL, &cred, &ttl );
NULL, NULL, NULL, &cred, NULL );
todo_wine ok( status == SEC_E_OK, "AcquireCredentialsHandleA returned %08x\n", status );
if(status == SEC_E_OK)
FreeCredentialHandle( &cred );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment