From 578224b2a26b076d40833f9a50edcb5496a19de5 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 5 Apr 2012 14:07:05 +0000 Subject: [PATCH] Fix trace logging initialization Reported by stefw@gnome.org. ticket: 7112 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25803 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/init_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 784acbea2..fdc9218f8 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -191,6 +191,7 @@ krb5_init_context_profile(profile_t profile, krb5_flags flags, if ((retval = krb5_os_init_context(ctx, profile, flags)) != 0) goto cleanup; + ctx->trace_callback = NULL; #ifndef DISABLE_TRACING if (!ctx->profile_secure) krb5int_init_trace(ctx); @@ -272,7 +273,6 @@ krb5_init_context_profile(profile_t profile, krb5_flags flags, ctx->prompt_types = 0; ctx->use_conf_ktypes = 0; ctx->udp_pref_limit = -1; - ctx->trace_callback = NULL; *context_out = ctx; return 0; -- 2.26.2