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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d5af511dd6f88d211b6c63b1e2d9d7ec97b03ad;p=thirdparty%2Fsamba.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) --- 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);