summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-11-25 15:06:19 +0100
committerKarolin Seeger <kseeger@samba.org>2010-01-13 14:01:01 +0100
commit94eb5db77ff9a94b4899a056278309d42797de6d (patch)
treecdbdbfaf71ca2971514f3f1fa03339302213dd9e
parentd26bf9d27fc485a5c6835db86d815725b2aaa49e (diff)
downloadsamba-94eb5db77ff9a94b4899a056278309d42797de6d.tar.gz
samba-94eb5db77ff9a94b4899a056278309d42797de6d.tar.xz
samba-94eb5db77ff9a94b4899a056278309d42797de6d.zip
cifs.upcall: 2nd part of fix for Bug #6868: support building with Heimdal we well as with MIT.
Guenther (cherry picked from commit 660ee2e74523194e5f6b2b6428d76628beb74717) (cherry picked from commit 1d5af511dd6f88d211b6c63b1e2d9d7ec97b03ad)
-rw-r--r--source/client/cifs.upcall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/client/cifs.upcall.c b/source/client/cifs.upcall.c
index 6d4ff755112..a2616f02e14 100644
--- a/source/client/cifs.upcall.c
+++ b/source/client/cifs.upcall.c
@@ -104,7 +104,9 @@ err_endseq:
err_ccstart:
krb5_free_principal(context, principal);
err_princ:
+#if defined(KRB5_TC_OPENCLOSE)
krb5_cc_set_flags(context, ccache, KRB5_TC_OPENCLOSE);
+#endif
krb5_cc_close(context, ccache);
err_cache:
krb5_free_context(context);