credentials: Remove an unnecessary talloc_steal()
authorVolker Lendecke <vl@samba.org>
Wed, 21 Nov 2018 14:30:29 +0000 (15:30 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 28 Nov 2018 16:44:14 +0000 (17:44 +0100)
ccc was already allocated off cred, this talloc_steal was a no-op.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
auth/credentials/credentials_krb5.c

index 6087da8..e64773d 100644 (file)
@@ -358,7 +358,6 @@ _PUBLIC_ int cli_credentials_set_ccache(struct cli_credentials *cred,
 
        cred->ccache = ccc;
        cred->ccache_obtained = obtained;
-       talloc_steal(cred, ccc);
 
        cli_credentials_invalidate_client_gss_creds(
                cred, cred->ccache_obtained);