From 9a015812264deb5fa84d55e82c068d8a4daf55cc Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 19 Apr 1995 17:45:22 +0000 Subject: [PATCH] Initialize and free default realm in context git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5377 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/init_ctx.c | 6 ++++++ 2 files changed, 11 insertions(+) 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); } -- 2.26.2