From: Greg Hudson Date: Thu, 5 Apr 2012 14:07:05 +0000 (+0000) Subject: Fix trace logging initialization X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=578224b2a26b076d40833f9a50edcb5496a19de5;p=krb5.git 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 --- 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;