From: Volker Lendecke Date: Wed, 21 Nov 2018 14:30:29 +0000 (+0100) Subject: credentials: Remove an unnecessary talloc_steal() X-Git-Tag: tdb-1.3.17~580 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c39526eb7d19e97f001690834e8f3bfa03f4d20e;p=thirdparty%2Fsamba.git credentials: Remove an unnecessary talloc_steal() ccc was already allocated off cred, this talloc_steal was a no-op. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/auth/credentials/credentials_krb5.c b/auth/credentials/credentials_krb5.c index 6087da8d51f..e64773d6d56 100644 --- a/auth/credentials/credentials_krb5.c +++ b/auth/credentials/credentials_krb5.c @@ -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);