because calling krb5_free_context will destroy it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16627
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-07-28 Ken Raeburn <raeburn@mit.edu>
+
+ * gssapi_krb5.c (kg_get_ccache_name): Make a copy of the default
+ ccache name, because calling krb5_free_context will destroy it.
+
2004-07-14 Ken Raeburn <raeburn@mit.edu>
* gssapi_krb5.c (kg_sync_ccache_name): Add context argument
err = krb5_init_context(&context);
if (!err)
err = krb5_cc_set_default_name (context, NULL);
- if (!err)
+ if (!err) {
name = krb5_cc_default_name(context);
+ name = strdup(name);
+ }
if (context)
krb5_free_context(context);
}