summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/os/ChangeLog16
-rw-r--r--src/lib/krb5/os/init_os_ctx.c6
2 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog
index 443318761..788a4ab51 100644
--- a/src/lib/krb5/os/ChangeLog
+++ b/src/lib/krb5/os/ChangeLog
@@ -1,3 +1,19 @@
+1999-03-12 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * init_os_ctx.c (krb5_os_init_context, krb5_os_free_context):
+ Sample the ccdefault name at the time when we create the
+ context. Free the ccdefault name when we free the os
+ context.
+
+ * ccdefname.c (krb5_cc_default_name, krb5_cc_set_default_name):
+ Check to make sure the context is valid and return an
+ error if it isn't.
+
+1999-03-11 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * ccdefname.c (get_from_os): Add missing call to get_from_registry
+ under windows.
+
Fri Feb 19 20:49:18 1999 Tom Yu <tlyu@mit.edu>
* ccdefname.c (get_from_os): Add missing close-paren; also replace
diff --git a/src/lib/krb5/os/init_os_ctx.c b/src/lib/krb5/os/init_os_ctx.c
index 99d9e6daf..ab325cb26 100644
--- a/src/lib/krb5/os/init_os_ctx.c
+++ b/src/lib/krb5/os/init_os_ctx.c
@@ -184,6 +184,9 @@ krb5_os_init_context(ctx)
os_ctx->time_offset = 0;
os_ctx->usec_offset = 0;
os_ctx->os_flags = 0;
+ os_ctx->default_ccname = 0;
+
+ krb5_cc_set_default_name(ctx, NULL);
retval = os_init_paths(ctx, FALSE);
@@ -241,6 +244,9 @@ krb5_os_free_context(ctx)
if (!os_ctx)
return;
+ if (os_ctx->default_ccname)
+ free(os_ctx->default_ccname);
+
os_ctx->magic = 0;
free(os_ctx);
ctx->os_context = 0;