diff options
author | Theodore Tso <tytso@mit.edu> | 1999-03-12 20:32:45 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1999-03-12 20:32:45 +0000 |
commit | e7ed9d3ec084e83a10f3a13894d4b29de1cb4209 (patch) | |
tree | d76c1059235b8c3bff8af0da15b79bf4f9dbed52 /src/lib/krb5/os/init_os_ctx.c | |
parent | 41bffde23a64d149e90aba3601260d2d3a149197 (diff) | |
download | krb5-e7ed9d3ec084e83a10f3a13894d4b29de1cb4209.zip krb5-e7ed9d3ec084e83a10f3a13894d4b29de1cb4209.tar.gz krb5-e7ed9d3ec084e83a10f3a13894d4b29de1cb4209.tar.bz2 |
Sample the ccdefault name at the time when we create the context.
Free the ccdefault name when we free the os context.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11272 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/os/init_os_ctx.c')
-rw-r--r-- | src/lib/krb5/os/init_os_ctx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/krb5/os/init_os_ctx.c b/src/lib/krb5/os/init_os_ctx.c index 99d9e6d..ab325cb 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; |