Commit e8d54db7 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

secur32/tests: Handle skip cleanup in negotiate more cleanly.

parent af6413aa
...@@ -262,6 +262,9 @@ static void test_authentication(void) ...@@ -262,6 +262,9 @@ static void test_authentication(void)
SecPkgInfoA *pi; SecPkgInfoA *pi;
BOOL first = TRUE; BOOL first = TRUE;
memset(&client, 0, sizeof(client));
memset(&server, 0, sizeof(server));
id.User = (unsigned char *)"user"; id.User = (unsigned char *)"user";
id.UserLength = strlen( "user" ); id.UserLength = strlen( "user" );
id.Domain = (unsigned char *)"domain"; id.Domain = (unsigned char *)"domain";
...@@ -342,17 +345,29 @@ done: ...@@ -342,17 +345,29 @@ done:
cleanup_buffers( &client ); cleanup_buffers( &client );
cleanup_buffers( &server ); cleanup_buffers( &server );
status_c = pDeleteSecurityContext( &client.ctxt ); if (client.ctxt.dwLower || client.ctxt.dwUpper)
ok( status_c == SEC_E_OK, "DeleteSecurityContext returned %08x\n", status_c ); {
status_c = pDeleteSecurityContext( &client.ctxt );
ok( status_c == SEC_E_OK, "DeleteSecurityContext returned %08x\n", status_c );
}
status_s = pDeleteSecurityContext( &server.ctxt ); if (server.ctxt.dwLower || server.ctxt.dwUpper)
ok( status_s == SEC_E_OK, "DeleteSecurityContext returned %08x\n", status_s ); {
status_s = pDeleteSecurityContext( &server.ctxt );
ok( status_s == SEC_E_OK, "DeleteSecurityContext returned %08x\n", status_s );
}
status_c = pFreeCredentialsHandle( &client.cred ); if (client.cred.dwLower || client.cred.dwUpper)
ok( status_c == SEC_E_OK, "FreeCredentialsHandle returned %08x\n", status_c ); {
status_c = pFreeCredentialsHandle( &client.cred );
ok( status_c == SEC_E_OK, "FreeCredentialsHandle returned %08x\n", status_c );
}
status_s = pFreeCredentialsHandle(&server.cred); if (server.cred.dwLower || server.cred.dwUpper)
ok( status_s == SEC_E_OK, "FreeCredentialsHandle returned %08x\n", status_s ); {
status_s = pFreeCredentialsHandle(&server.cred);
ok( status_s == SEC_E_OK, "FreeCredentialsHandle returned %08x\n", status_s );
}
} }
START_TEST(negotiate) START_TEST(negotiate)
......
Markdown is supported
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