torture: Correctly invalidate the memory ccache.
authorAndreas Schneider <asn@samba.org>
Mon, 13 Apr 2015 13:37:58 +0000 (15:37 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 15 Apr 2015 06:42:18 +0000 (08:42 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source4/torture/rpc/remote_pac.c

index 82d7af99b1fba917f30b4ea7144196b7f9e4401f..9dfc42707b7e49cdd191f3df99ca700cb95f627e 100644 (file)
@@ -168,6 +168,8 @@ static bool test_PACVerify(struct torture_context *tctx,
        client_creds = cli_credentials_shallow_copy(tmp_ctx,
                                                    cmdline_credentials);
        torture_assert(tctx, client_creds, "Failed to copy of credentials");
+       /* Invalidate the gss creds container to allocate a new MEMORY ccache */
+       cli_credentials_invalidate_ccache(client_creds, CRED_SPECIFIED);
 
        server_creds = cli_credentials_shallow_copy(tmp_ctx,
                                                    credentials);