From 86ce19d792e2c575ba6a22328805732bb222660e Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 30 Apr 1999 16:29:45 +0000 Subject: [PATCH] set_ccache.c (gss_krb5_ccache_name): Add call to free the default credential changing the ccache name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11413 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 5 +++++ src/lib/gssapi/krb5/set_ccache.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 6081b04c0..ddb73e024 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 30 12:27:14 1999 Theodore Y. Ts'o + + * set_ccache.c (gss_krb5_ccache_name): Add call to free the + default credential changing the ccache name. + Thu Apr 29 18:02:00 1999 Miro Jurisic * gssapi_krb5.h: Remove gssapi_generic.h includes because diff --git a/src/lib/gssapi/krb5/set_ccache.c b/src/lib/gssapi/krb5/set_ccache.c index 3732ca78e..eba22f2cd 100644 --- a/src/lib/gssapi/krb5/set_ccache.c +++ b/src/lib/gssapi/krb5/set_ccache.c @@ -8,6 +8,7 @@ gss_krb5_ccache_name(minor_status, name, out_name) { krb5_context context; krb5_error_code retval; + OM_uint32 foo_stat; if (GSS_ERROR(kg_get_context(minor_status, &context))) return (GSS_S_FAILURE); @@ -20,6 +21,7 @@ gss_krb5_ccache_name(minor_status, name, out_name) *minor_status = retval; return GSS_S_FAILURE; } + kg_release_defcred(&foo_stat); return GSS_S_COMPLETE; } -- 2.26.2