From: Günther Deschner Date: Wed, 25 Nov 2009 14:06:19 +0000 (+0100) Subject: cifs.upcall: 2nd part of fix for Bug #6868: support building with Heimdal we well... X-Git-Tag: samba-3.4.4~54 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=c35897540e19bc94cc3473b4e751beb0460b2abd;p=samba.git 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 e3a06f282d5e5c06bd006497dd8736a531e6cb3b) --- diff --git a/source3/client/cifs.upcall.c b/source3/client/cifs.upcall.c index ecd0348b58c..d4010a39631 100644 --- a/source3/client/cifs.upcall.c +++ b/source3/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);