set_ccache.c (gss_krb5_ccache_name): Add call to free the default
authorTheodore Tso <tytso@mit.edu>
Fri, 30 Apr 1999 16:29:45 +0000 (16:29 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 30 Apr 1999 16:29:45 +0000 (16:29 +0000)
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
src/lib/gssapi/krb5/set_ccache.c

index 6081b04c0125636e0dc02ad9afad08a4644542dc..ddb73e024a8c5550d5760496de8d867c9d998d72 100644 (file)
@@ -1,3 +1,8 @@
+Fri Apr 30 12:27:14 1999  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * 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  <meeroh@mit.edu>
 
        * gssapi_krb5.h: Remove gssapi_generic.h includes because
index 3732ca78e8ede4a930982a44a938f91baf67b3f5..eba22f2cd4ac2f1a07836249f942caa9150f8abb 100644 (file)
@@ -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;
 }