From: Ezra Peisach Date: Wed, 19 Apr 1995 17:45:22 +0000 (+0000) Subject: Initialize and free default realm in context X-Git-Tag: krb5-1.0-beta5~359 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a015812264deb5fa84d55e82c068d8a4daf55cc;p=krb5.git Initialize and free default realm in context git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5377 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 49925830d..3e5a5e365 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 19 13:39:34 1995 Ezra Peisach + + * init_ctx.c: (krb5_init_context) initialize context default + realm. (krb5_free_context) free default realm. + Fri Apr 14 15:05:51 1995 * sendauth.c (krb5_sendauth): initialize error return parameter diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 9daa66b85..88a21ea4a 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -47,6 +47,9 @@ krb5_init_context(context) if (krb5_os_init_context(ctx)) goto cleanup; + + ctx->default_realm = 0; + *context = ctx; return 0; @@ -64,6 +67,9 @@ krb5_free_context(ctx) if (ctx->etypes); free(ctx->etypes); + if (ctx->default_realm) + free(ctx->default_realm); + ctx->magic = 0; free(ctx); }